fix: fall back to node-pty when Bun is not defined (Electron/Node.js) (#1446)

Co-authored-by: Letta Code <noreply@letta.com>
This commit is contained in:
Shubham Naik
2026-03-19 08:56:15 -07:00
committed by GitHub
parent 674472b76a
commit 850a6b7c88
3 changed files with 227 additions and 140 deletions

View File

@@ -49,7 +49,7 @@ await Bun.build({
// Keep most native Node.js modules external to avoid bundling issues
// But don't make `sharp` external, causes issues with global Bun-based installs
// ref: #745, #1200
external: ["ws", "@vscode/ripgrep"],
external: ["ws", "@vscode/ripgrep", "node-pty"],
features: features,
});