Update global object fix

This commit is contained in:
octoclonius
2024-01-13 13:23:57 -06:00
committed by GitHub
parent 7f7de14e6f
commit 1a67241f67
+3 -1
View File
@@ -33,7 +33,9 @@ module.exports = {
filename: mainFile,
path: path.resolve('./lib'),
library: addonName,
libraryTarget: 'umd'
libraryTarget: 'umd',
// Force usage of globalThis instead of global / self. (This is cross-env compatible)
globalObject: 'globalThis',
},
mode: 'production'
};