mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-20 19:40:59 -05:00
fix(build): fix global object when building as lib with async chunks
close #1607
This commit is contained in:
@@ -88,7 +88,7 @@ module.exports = (api, { entry, name }, options) => {
|
||||
// libraryTarget: 'esm' or target: 'universal'
|
||||
// https://github.com/webpack/webpack/issues/6522
|
||||
// https://github.com/webpack/webpack/issues/6525
|
||||
globalObject: `typeof self !== 'undefined' ? self : this`
|
||||
globalObject: `(typeof self !== 'undefined' ? self : this)`
|
||||
}, rawConfig.output, {
|
||||
filename: `${entryName}.js`,
|
||||
chunkFilename: `${entryName}.[name].js`,
|
||||
|
||||
Reference in New Issue
Block a user