fix chunking problem related to dynamic import and bug re: umd

This commit is contained in:
Michael Bradley, Jr 2018-10-04 13:18:42 -05:00 committed by Pascal Precht
parent 0c60d2e1b4
commit 115bf1387d
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 2 additions and 1 deletions

View File

@ -155,7 +155,8 @@ const base = {
filename: (chunkData) => chunkData.chunk.name, filename: (chunkData) => chunkData.chunk.name,
// globalObject workaround for node-compatible UMD builds with webpack 4 // globalObject workaround for node-compatible UMD builds with webpack 4
// see: https://github.com/webpack/webpack/issues/6522#issuecomment-371120689 // see: https://github.com/webpack/webpack/issues/6522#issuecomment-371120689
globalObject: 'typeof self !== \'undefined\' ? self : this', // see: https://github.com/webpack/webpack/issues/6522#issuecomment-418864518
globalObject: '(typeof self !== \'undefined\' ? self : this)',
libraryTarget: 'umd', libraryTarget: 'umd',
path: buildDir path: buildDir
}, },