fix: require_dlopen
This commit is contained in:
1 parent
d4556d9299
commit
bc1148c00a
1 file changed
-5
@@ -27,8 +27,3 @@ export function require_dlopen(modulename: string) {
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
return module.exports as any;
|
return module.exports as any;
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* Expose the native API when not Windows, note that this is not public API and
|
|
||||||
* could be removed at any time.
|
|
||||||
*/
|
|
||||||
export const native = (process.platform !== 'win32' ? require_dlopen('./pty/' + process.platform + '.' + process.arch + '/pty.node') : null);
|
|
||||||
Reference in new issue
Block a user