From 322e3ee804d34be2fa6be07876a473d6aeebd955 Mon Sep 17 00:00:00 2001 From: Faustino Gagneten Date: Sat, 17 Apr 2021 08:28:41 -0300 Subject: [PATCH] Use this as a globalObject in webpack --- webpack.config.build.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webpack.config.build.js b/webpack.config.build.js index d49080f..c3d230e 100644 --- a/webpack.config.build.js +++ b/webpack.config.build.js @@ -10,6 +10,7 @@ module.exports = { libraryTarget: 'umd', library: 'ReactWeather', umdNamedDefine: true, + globalObject: 'this' }, devtool: false, module: {