Update global object fix

This commit is contained in:
octoclonius
2024-01-13 13:24:15 -06:00
committed by GitHub
parent 1a67241f67
commit f84fff5f87
+3 -1
View File
@@ -25,7 +25,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'
};