From a5a547d40ddc187211d43af456172c114628e84c Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Mon, 13 Sep 2021 13:16:40 +0200 Subject: [PATCH] Fix build config to work with node.js --- webpack.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index fc0e132..9107eb7 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -9,7 +9,9 @@ module.exports = { filename: 'build.js', library: 'ChatMessages', libraryTarget: 'umd', - libraryExport: 'default' + libraryExport: 'default', + umdNamedDefine: true, + globalObject: 'this' }, mode: isProd ? 'production' : 'development', devtool: isProd ? 'source-map' : 'eval-source-map',