Fix build config to work with node.js

This commit is contained in:
Basti 2021-09-13 13:16:40 +02:00
parent 21cb5a02c8
commit a5a547d40d
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72
1 changed files with 3 additions and 1 deletions

View File

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