mirror of https://github.com/embarklabs/embark.git
fix chunking problem related to dynamic import and bug re: umd
This commit is contained in:
parent
0c60d2e1b4
commit
115bf1387d
|
@ -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
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue