From 2defd18230caa2fc4b6df19ade8cf90b9fad6be0 Mon Sep 17 00:00:00 2001 From: Daphne Smit Date: Mon, 1 Mar 2021 14:18:45 +0100 Subject: [PATCH] fix: added globalObject: 'this' to fix ssr warning for window in umd dist definition --- webpack.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index a719b37..aa8ab6f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -15,7 +15,8 @@ module.exports = { path: path.resolve(__dirname, 'dist'), filename: 'print.js', sourceMapFilename: 'print.map', - libraryExport: 'default' + libraryExport: 'default', + globalObject: 'this' }, module: { rules: [