Skip to content

Commit f806578

Browse files
committed
Additional config fix for webpack update
1 parent 63fef30 commit f806578

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

config/webpack/lib-base.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ module.exports = function configFactory(ops) {
5858
mode: ops.mode,
5959
output: {
6060
filename: 'index.js',
61+
62+
// Workaround to fix umd build, restore webpack v3 behaviour
63+
// https://github.com/webpack/webpack/issues/6677
64+
// https://github.com/webpack/webpack/issues/6642
65+
globalObject: "typeof self !== 'undefined' ? self : this",
66+
6167
library: ops.library,
6268
path: path.resolve(__dirname, ops.context, 'dist'),
6369
libraryTarget: 'umd',

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,5 @@
117117
"lint:scss": "./node_modules/.bin/stylelint **/*.scss --syntax scss",
118118
"test": "npm run lint && npm run jest"
119119
},
120-
"version": "0.5.1"
120+
"version": "0.5.2"
121121
}

0 commit comments

Comments
 (0)