Make serialize and unicode11 compatible with node

Fixes #3410
Fixes #3411
This commit is contained in:
Daniel Imms
2021-08-17 05:48:52 -07:00
parent 7c0a28eb59
commit 7a2621f6ab
5 changed files with 6 additions and 11 deletions
@@ -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));
}
@@ -25,7 +25,8 @@ module.exports = {
filename: mainFile,
path: path.resolve('./lib'),
library: addonName,
libraryTarget: 'umd'
libraryTarget: 'umd',
globalObject: 'this'
},
mode: 'production'
};
@@ -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());
@@ -32,7 +32,8 @@ module.exports = {
filename: mainFile,
path: path.resolve('./lib'),
library: addonName,
libraryTarget: 'umd'
libraryTarget: 'umd',
globalObject: 'this'
},
mode: 'production'
};
-9
View File
@@ -1,9 +0,0 @@
{
"name": "xterm-headless",
"description": "A headless terminal component that runs in Node.js",
"version": "4.13.0-alpha3",
"main": "lib-headless/xterm-headless.js",
"types": "typings/xterm-headless.d.ts",
"repository": "https://github.com/xtermjs/xterm.js",
"license": "MIT"
}