Skip to content

Commit ea56788

Browse files
committed
fix window is not defined xtermjs#2749
1 parent 0dc2d1b commit ea56788

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

webpack.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ module.exports = {
3535
output: {
3636
filename: 'xterm.js',
3737
path: path.resolve('./lib'),
38-
libraryTarget: 'umd'
38+
libraryTarget: 'umd',
39+
umdNamedDefine: true,
40+
globalObject: 'this'
3941
},
4042
mode: 'production'
4143
};

0 commit comments

Comments
 (0)