Skip to content

Commit

Permalink
fixed:vitescv/app optimizeDeps error with virtul module when coustom …
Browse files Browse the repository at this point in the history
…install(not when link)
  • Loading branch information
cczw2010 committed Jan 19, 2024
1 parent 4f7459c commit 18d286c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default function(userConfig){
// include:['element-ui/lib/*.js'],
// include:['@vitescv/elementui > element-ui/lib/*.js'],
// 💡 排除的预构建,vitescv/app包含虚拟模块,预构建的时候并不存在,会报错
// exclude:['vitescv/app'],
exclude:['vitescv/app'], //npm link安装的时候不报错,正常里面引用的虚拟模块报错
//💡 设置为 true 可以强制依赖预构建,而忽略之前已经缓存过的、已经优化过的依赖。
force:false,
// 只有development的时候才使用兼容插件来处理,因为prodction的时候会走rollup的unpluginvModules.vite 会冲突
Expand Down

0 comments on commit 18d286c

Please sign in to comment.