提交 8e669579 作者: 方治民

fix: 修复 vite 3.x 构建异常问题

上级 3ed9e039
...@@ -33,6 +33,11 @@ export default ({ mode }: ConfigEnv): UserConfig => { ...@@ -33,6 +33,11 @@ export default ({ mode }: ConfigEnv): UserConfig => {
build: { build: {
target: 'es2015', target: 'es2015',
sourcemap: isDevFn(mode) ? true : false, sourcemap: isDevFn(mode) ? true : false,
rollupOptions: {
output: {
inlineDynamicImports: false,
},
},
}, },
define: { define: {
__APP__: { __APP__: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论