From fb5157c7a6b70c3cb86ef43534b55be77ad7a060 Mon Sep 17 00:00:00 2001 From: Kainoa Kanter Date: Fri, 27 Feb 2026 15:41:49 -0800 Subject: [PATCH] fix: don't extern sharp (#1200) --- build.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.js b/build.js index 54338d3..da338c0 100644 --- a/build.js +++ b/build.js @@ -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, });