From 6a32436d78f7ed115584c9ce7a0b8cc4dbc54821 Mon Sep 17 00:00:00 2001 From: Kenny Huynh Date: Wed, 29 Jul 2020 13:33:15 -0700 Subject: [PATCH] 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 --- webpack.umd.config.babel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webpack.umd.config.babel.js b/webpack.umd.config.babel.js index 14779ca7e..c09e4c484 100644 --- a/webpack.umd.config.babel.js +++ b/webpack.umd.config.babel.js @@ -7,6 +7,7 @@ const umdConfig = Object.assign({}, baseConfig, { }, output: { + globalObject: "this", path: path.resolve(__dirname, "build"), publicPath: "/", filename: "[name].js",