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:
@@ -34,7 +34,8 @@ module.exports = {
|
|||||||
path: path.resolve('./lib'),
|
path: path.resolve('./lib'),
|
||||||
library: addonName,
|
library: addonName,
|
||||||
libraryTarget: 'umd',
|
libraryTarget: 'umd',
|
||||||
globalObject: 'this'
|
// Force usage of globalThis instead of global / self. (This is cross-env compatible)
|
||||||
|
globalObject: 'globalThis',
|
||||||
},
|
},
|
||||||
mode: 'production'
|
mode: 'production'
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user