fix: require_dlopen

This commit is contained in:
手瓜一十雪
2025-02-06 15:25:47 +08:00
parent d4556d9299
commit bc1148c00a

View File

@@ -27,8 +27,3 @@ export function require_dlopen(modulename: string) {
// eslint-disable-next-line @typescript-eslint/no-explicit-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);