Update webpack.config.js global object fix

`this` might be okay, I'm not actually sure, but xterm.js uses `globalThis` and so I think consistency is better maybe?
This commit is contained in:
octoclonius
2024-01-13 13:29:20 -06:00
committed by GitHub
parent 072cd029e4
commit d8f96ab9c7
+2 -1
View File
@@ -34,7 +34,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'
};