Skip to content

Commit

Permalink
fix: ReferenceError: window is not defined (#319)
Browse files Browse the repository at this point in the history
* set output.globalObject = "this" in webpack.umd.config.babel.js

fixes error with webpack umd output. see issue #318

* fix lint
  • Loading branch information
hkennyv authored Jul 29, 2020
1 parent 710d7ba commit 6a32436
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webpack.umd.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const umdConfig = Object.assign({}, baseConfig, {
},

output: {
globalObject: "this",
path: path.resolve(__dirname, "build"),
publicPath: "/",
filename: "[name].js",
Expand Down

0 comments on commit 6a32436

Please sign in to comment.