diff --git a/lib/pipeline/webpack.config.js b/lib/pipeline/webpack.config.js index 6920f0d76..a350e25d5 100644 --- a/lib/pipeline/webpack.config.js +++ b/lib/pipeline/webpack.config.js @@ -155,7 +155,8 @@ const base = { filename: (chunkData) => chunkData.chunk.name, // globalObject workaround for node-compatible UMD builds with webpack 4 // 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', path: buildDir },