Skip to content

Commit c4fb1b2

Browse files
committed
require
1 parent 2c9e900 commit c4fb1b2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/conpty_console_list_agent.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
* called from a different process (child_process.fork) as there can only be a
66
* single console attached to a process.
77
*/
8-
8+
// eslint-disable-next-line @typescript-eslint/naming-convention
9+
const __non_webpack_require__ = require;
910
let getConsoleProcessList: any;
1011
try {
11-
getConsoleProcessList = require('../build/Release/conpty_console_list.node').getConsoleProcessList;
12+
getConsoleProcessList = __non_webpack_require__('../build/Release/conpty_console_list.node').getConsoleProcessList;
1213
} catch (err) {
13-
getConsoleProcessList = require('../build/Debug/conpty_console_list.node').getConsoleProcessList;
14+
getConsoleProcessList = __non_webpack_require__('../build/Debug/conpty_console_list.node').getConsoleProcessList;
1415
}
1516

1617
const shellPid = parseInt(process.argv[2], 10);

src/windowsConoutConnection.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { IDisposable } from './types';
88
import { IWorkerData, ConoutWorkerMessage, getWorkerPipeName } from './shared/conout';
99
import { join } from 'path';
1010
import { IEvent, EventEmitter2 } from './eventEmitter2';
11-
import json = Mocha.reporters.json;
1211

1312
/**
1413
* The amount of time to wait for additional data after the conpty shell process has exited before

0 commit comments

Comments
 (0)