From 5d3a89dc2dd1711548b226562c695d46e3711de6 Mon Sep 17 00:00:00 2001 From: Matt Goo Date: Mon, 1 Jul 2019 16:56:16 -0700 Subject: [PATCH] fix(infrastructure): fix SSR support for webpack4 update (#956) --- packages/webpack.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/webpack.config.js b/packages/webpack.config.js index f8d41e7bb..5d34b155d 100644 --- a/packages/webpack.config.js +++ b/packages/webpack.config.js @@ -75,6 +75,7 @@ function getCommonWebpackParams({isCss} = {}) { path: getAbsolutePath('../build'), filename: `${filename}${isCss ? '.css' : ''}.js`, libraryTarget: 'umd', + globalObject: `typeof self !== 'undefined' ? self : this`, }, resolve: { extensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],