Closed lllianreg closed 10 months ago
解决了
exclude: [/[\\/]node_modules[\\/]((?!private-component-library|private-component-library-vite\/).)/, /[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/]
另外 如果引入了cdn 需要 externals
import { viteExternalsPlugin } from 'vite-plugin-externals'
plugins.viteExternalsPlugin((isPro ? {
vue: 'Vue',
} : {}),)
vite-plugin-externals
跟vite-plugin-cdn-import这个插件一起用会有冲突,有解决方案不
Describe the bug
结果![Snipaste_2023-07-07_11-43-15](https://github.com/antfu/unplugin-vue-components/assets/21689406/e6b1b782-2508-4109-b92b-2dd69845ac3f)
Reproduction
test
System Info
Used Package Manager
npm
Validations