mirror of
https://github.com/youzan/vant.git
synced 2026-01-22 01:02:23 +08:00
fix(@vant/cli): incorrect global object for async chunk (#9955)
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user