Get sources building with esbuild

This commit is contained in:
Daniel Imms
2024-07-05 08:46:15 -07:00
parent 5b5e262dff
commit 1f11c7e46c
45 changed files with 666 additions and 254 deletions
+5 -5
View File
@@ -7,7 +7,7 @@ import { perfContext, before, ThroughputRuntimeCase } from 'xterm-benchmark';
import { spawn } from 'node-pty';
import { Utf8ToUtf32, stringFromCodePoint } from 'common/input/TextDecoder';
import { Terminal } from 'browser/Terminal';
import { CoreBrowserTerminal } from 'browser/CoreBrowserTerminal';
perfContext('Terminal: ls -lR /usr/lib', () => {
let content = '';
@@ -45,9 +45,9 @@ perfContext('Terminal: ls -lR /usr/lib', () => {
});
perfContext('write/string/async', () => {
let terminal: Terminal;
let terminal: CoreBrowserTerminal;
before(() => {
terminal = new Terminal({ cols: 80, rows: 25, scrollback: 1000 });
terminal = new CoreBrowserTerminal({ cols: 80, rows: 25, scrollback: 1000 });
});
new ThroughputRuntimeCase('', async () => {
await new Promise<void>(res => terminal.write(content, res));
@@ -56,9 +56,9 @@ perfContext('Terminal: ls -lR /usr/lib', () => {
});
perfContext('write/Utf8/async', () => {
let terminal: Terminal;
let terminal: CoreBrowserTerminal;
before(() => {
terminal = new Terminal({ cols: 80, rows: 25, scrollback: 1000 });
terminal = new CoreBrowserTerminal({ cols: 80, rows: 25, scrollback: 1000 });
});
new ThroughputRuntimeCase('', async () => {
await new Promise<void>(res => terminal.write(content, res));