fix(@vant/cli): incorrect global object for async chunk (#9955)

This commit is contained in:
neverland
2021-11-29 11:55:42 +08:00
committed by GitHub
parent d4a29afb6a
commit b04bac5844
2 changed files with 4 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ export function getPackageConfig(isMinify: boolean): WebpackConfig {
filename: isMinify ? '[name].min.js' : '[name].js',
umdNamedDefine: true,
// https://github.com/webpack/webpack/issues/6522
globalObject: "typeof self !== 'undefined' ? self : this",
globalObject: "(typeof self !== 'undefined' ? self : this)",
},
externals: {
vue: {