mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[Build] adust globalObject to support module script (#4080)
This commit is contained in:
parent
24f5a91cd3
commit
8aaffc807b
@ -16,7 +16,8 @@ module.exports = Object.assign(config, {
|
||||
libraryTarget: 'umd',
|
||||
filename: isMinify ? '[name].min.js' : '[name].js',
|
||||
umdNamedDefine: true,
|
||||
globalObject: 'this'
|
||||
// https://github.com/webpack/webpack/issues/6522
|
||||
globalObject: 'typeof self !== \'undefined\' ? self : this'
|
||||
},
|
||||
externals: {
|
||||
vue: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user