Update webpack.config.js global object fix

This commit is contained in:
octoclonius
2024-01-13 13:29:48 -06:00
committed by GitHub
parent 330d7b3100
commit 693ec1b2bc
+2 -1
View File
@@ -33,7 +33,8 @@ module.exports = {
path: path.resolve('./lib'),
library: addonName,
libraryTarget: 'umd',
globalObject: 'this'
// Force usage of globalThis instead of global / self. (This is cross-env compatible)
globalObject: 'globalThis',
},
mode: 'production'
};