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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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', filename: isMinify ? '[name].min.js' : '[name].js',
umdNamedDefine: true, umdNamedDefine: true,
// https://github.com/webpack/webpack/issues/6522 // https://github.com/webpack/webpack/issues/6522
globalObject: "typeof self !== 'undefined' ? self : this", globalObject: "(typeof self !== 'undefined' ? self : this)",
}, },
externals: { externals: {
vue: { vue: {

View File

@ -3385,9 +3385,9 @@ camelcase@^6.0.0:
integrity sha512-8KMDF1Vz2gzOq54ONPJS65IvTUaB1cHJ2DMM7MbPmLZljDH1qpzzLsWdiN9pHh6qvkRVDTi/07+eNGch/oLU4w== integrity sha512-8KMDF1Vz2gzOq54ONPJS65IvTUaB1cHJ2DMM7MbPmLZljDH1qpzzLsWdiN9pHh6qvkRVDTi/07+eNGch/oLU4w==
caniuse-lite@^1.0.30001038, caniuse-lite@^1.0.30001039, caniuse-lite@^1.0.30001087, caniuse-lite@^1.0.30001088: caniuse-lite@^1.0.30001038, caniuse-lite@^1.0.30001039, caniuse-lite@^1.0.30001087, caniuse-lite@^1.0.30001088:
version "1.0.30001238" version "1.0.30001283"
resolved "https://registry.nlark.com/caniuse-lite/download/caniuse-lite-1.0.30001238.tgz?cache=0&sync_timestamp=1623999794080&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fcaniuse-lite%2Fdownload%2Fcaniuse-lite-1.0.30001238.tgz#e6a8b45455c5de601718736d0242feef0ecdda15" resolved "https://registry.npmmirror.com/caniuse-lite/download/caniuse-lite-1.0.30001283.tgz#8573685bdae4d733ef18f78d44ba0ca5fe9e896b"
integrity sha1-5qi0VFXF3mAXGHNtAkL+7w7N2hU= integrity sha512-9RoKo841j1GQFSJz/nCXOj0sD7tHBtlowjYlrqIUS812x9/emfBLBt6IyMz1zIaYc/eRL8Cs6HPUVi2Hzq4sIg==
capture-exit@^2.0.0: capture-exit@^2.0.0:
version "2.0.0" version "2.0.0"