Skip to content

Commit

Permalink
Merge pull request #4856 from alan-agius4/alan-agius4-patch-1
Browse files Browse the repository at this point in the history
fix: use globalThis instead of self to address non Browser consumption
  • Loading branch information
Tyriar committed Oct 30, 2023
2 parents 9fff1e6 + de1304d commit 804ff18
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 804ff18

Please sign in to comment.