From 5d110e87ebd0e16565d7b551bbc07b4d234f294d Mon Sep 17 00:00:00 2001 From: Volodymyr Shugaev Date: Mon, 25 Mar 2019 18:39:55 +0200 Subject: [PATCH] fix: universal packaging for node and browser --- webpack.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index cd8eb62..130fa16 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -18,7 +18,8 @@ module.exports = { : 'mobx-react-router.js', library: libraryName, libraryTarget: 'umd', - umdNamedDefine: true + umdNamedDefine: true, + globalObject: 'this' }, optimization: { minimize: shouldMinify