build(projects): 升级依赖、vite配置optimizeDeps

This commit is contained in:
Soybean
2022-08-03 22:25:04 +08:00
parent 2aba58c973
commit ee434b465a
3 changed files with 22 additions and 9 deletions

View File

@@ -37,6 +37,19 @@ export default defineConfig(configEnv => {
preview: {
port: 5050
},
optimizeDeps: {
include: [
'@antv/data-set',
'@antv/g2',
'@better-scroll/core',
'echarts',
'swiper',
'swiper/vue',
'vditor',
'wangeditor',
'xgplayer'
]
},
build: {
reportCompressedSize: false,
sourcemap: false,