mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-18 20:30:08 +08:00
Updated import statements in prebuild-loader.ts and windowsPtyAgent.ts to use relative path './index' for require_dlopen. This resolves incorrect module resolution issues.
11 lines
248 B
TypeScript
11 lines
248 B
TypeScript
import { require_dlopen } from './index';
|
|
export function pty_loader () {
|
|
let pty: any;
|
|
try {
|
|
pty = require_dlopen('./native/pty/' + process.platform + '.' + process.arch + '/pty.node');
|
|
} catch {
|
|
pty = undefined;
|
|
}
|
|
return pty;
|
|
}
|