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',