perf: optimize the size of the first screen

This commit is contained in:
vben
2020-10-20 21:06:12 +08:00
parent c2333f5d04
commit 968f791f4b
11 changed files with 43 additions and 26 deletions

View File

@@ -133,8 +133,7 @@ const viteConfig: UserConfig = {
javascriptEnabled: true,
},
},
// 配置Dep优化行为
// 会使用 rollup 对 包重新编译,将编译成符合 esm 模块规范的新的包放入 node_modules 下的 .
// 会使用 rollup 对 包重新编译,将编译成符合 esm 模块规范的新的包放入 node_modules/.vite_opt_cache
optimizeDeps: {
include: [
'echarts',