fix: require_dlopen

This commit is contained in:
手瓜一十雪 committed 2025-02-06 15:25:47 +08:00
1 parent 78029034c9
commit dbbb1911c6
1 file changed
-5
-5
View File
@@ -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);