fix: don't extern sharp (#1200)

This commit is contained in:
Kainoa Kanter
2026-02-27 15:41:49 -08:00
committed by GitHub
parent 186483d750
commit fb5157c7a6

View File

@@ -46,8 +46,10 @@ await Bun.build({
".txt": "text",
},
// Keep native Node.js modules external to avoid bundling issues
external: ["ws", "sharp", "@vscode/ripgrep"],
// 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"],
features: features,
});