Skip to content

Commit

Permalink
Merge pull request #3421 from Tyriar/node_addons
Browse files Browse the repository at this point in the history
Make serialize and unicode11 compatible with node
  • Loading branch information
Tyriar authored Aug 17, 2021
2 parents 03c1836 + cee8f67 commit 9cdb806
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
1 change: 1 addition & 0 deletions addons/xterm-addon-serialize/src/SerializeAddon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import { Terminal, ITerminalAddon, IBuffer, IBufferCell } from 'xterm';


function constrain(value: number, low: number, high: number): number {
return Math.max(low, Math.min(value, high));
}
Expand Down
3 changes: 2 additions & 1 deletion addons/xterm-addon-serialize/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ module.exports = {
filename: mainFile,
path: path.resolve('./lib'),
library: addonName,
libraryTarget: 'umd'
libraryTarget: 'umd',
globalObject: 'this'
},
mode: 'production'
};
1 change: 1 addition & 0 deletions addons/xterm-addon-unicode11/src/Unicode11Addon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import { Terminal, ITerminalAddon } from 'xterm';
import { UnicodeV11 } from './UnicodeV11';


export class Unicode11Addon implements ITerminalAddon {
public activate(terminal: Terminal): void {
terminal.unicode.register(new UnicodeV11());
Expand Down
3 changes: 2 additions & 1 deletion addons/xterm-addon-unicode11/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ module.exports = {
filename: mainFile,
path: path.resolve('./lib'),
library: addonName,
libraryTarget: 'umd'
libraryTarget: 'umd',
globalObject: 'this'
},
mode: 'production'
};
9 changes: 0 additions & 9 deletions headless/package.json

This file was deleted.

0 comments on commit 9cdb806

Please sign in to comment.