提交 e924ee2c 编写于 作者: 雪洛's avatar 雪洛

fix(uni-app-x web): 调整build target支持低版本浏览器

上级 ec36eba9
......@@ -89,6 +89,9 @@ export function createConfig(options: {
external,
},
build: {
target: process.env.UNI_APP_X
? ['es2015', 'edge79', 'firefox62', 'chrome64', 'safari11.1']
: undefined,
rollupOptions: {
// resolveSSRExternal 会判定package.json,hbx 工程可能没有,通过 rollup 来配置
external: isSsr(env.command, config) ? external : [],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册