Skip to content

Commit 6a32436

Browse files
authored
fix: ReferenceError: window is not defined (#319)
* set output.globalObject = "this" in webpack.umd.config.babel.js fixes error with webpack umd output. see issue #318 * fix lint
1 parent 710d7ba commit 6a32436

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

webpack.umd.config.babel.js

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const umdConfig = Object.assign({}, baseConfig, {
77
},
88

99
output: {
10+
globalObject: "this",
1011
path: path.resolve(__dirname, "build"),
1112
publicPath: "/",
1213
filename: "[name].js",

0 commit comments

Comments
 (0)