Fix build config to work with node.js

This commit is contained in:
basti committed 2021-09-13 13:16:40 +02:00
1 parent 21cb5a02c8
commit a5a547d40d
1 file changed
+3 -1
+3 -1
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',