提交 1de58dc2 编写于 作者: fxy060608's avatar fxy060608

fix: disable optimize deps (#3849)

上级 d36d836c
...@@ -21,6 +21,9 @@ export function uniAppPlugin( ...@@ -21,6 +21,9 @@ export function uniAppPlugin(
return { return {
base: '/', // app 平台强制 base base: '/', // app 平台强制 base
build: buildOptions({ renderer, appService }, config, env), build: buildOptions({ renderer, appService }, config, env),
optimizeDeps: {
disabled: true,
},
resolve: { resolve: {
alias: { alias: {
// vue-i18n 默认会启用 new Function 来构造翻译函数,导致在 Android 上可能报`TypeError: no access` 错误 // vue-i18n 默认会启用 new Function 来构造翻译函数,导致在 Android 上可能报`TypeError: no access` 错误
......
...@@ -149,6 +149,9 @@ export function uniMiniProgramPlugin( ...@@ -149,6 +149,9 @@ export function uniMiniProgramPlugin(
}), }),
}, },
}, },
optimizeDeps: {
disabled: true,
},
build: buildOptions(), build: buildOptions(),
} }
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册