Merge pull request #4856 from alan-agius4/alan-agius4-patch-1

fix: use globalThis instead of self to address non Browser consumption
This commit is contained in:
Daniel Imms
2023-10-30 09:36:08 -07:00
committed by GitHub
+4 -2
View File
@@ -39,8 +39,10 @@ const config = {
output: {
filename: 'xterm.js',
path: path.resolve('./lib'),
libraryTarget: 'umd'
libraryTarget: 'umd',
// Force usage of globalThis instead of global / self. (This is cross-env compatible)
globalObject: 'globalThis',
},
mode: 'production'
mode: 'production',
};
module.exports = config;