From 95109844e899301ca9576a7c2017b4c1be5b5938 Mon Sep 17 00:00:00 2001 From: oozcitak Date: Thu, 29 Jul 2021 15:54:36 +0300 Subject: [PATCH] Set global to window instead of sel to support web workers. Fixes #77 --- webpack.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 0ac573db..75c15f97 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -50,6 +50,7 @@ module.exports = { filename: 'xmlbuilder2.min.js', path: path.resolve(__dirname, 'lib'), library: 'xmlbuilder2', - libraryTarget: 'umd' + libraryTarget: 'umd', + globalObject: 'this' } }; \ No newline at end of file