From 841036c2943c9a1bc285faf3b65a83e138b66714 Mon Sep 17 00:00:00 2001 From: Kainoa Kanter Date: Thu, 29 Jan 2026 16:50:47 -0800 Subject: [PATCH] fix: don't extern sharp, even if unused (#745) --- build.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/build.js b/build.js index 4836cd9..4caeb46 100644 --- a/build.js +++ b/build.js @@ -17,13 +17,11 @@ const pkg = JSON.parse(readFileSync(join(__dirname, "package.json"), "utf-8")); const version = pkg.version; const useMagick = Bun.env.USE_MAGICK; const features = [] -const externalDeps = [] console.log(`📦 Building Letta Code v${version}...`); if (useMagick) { console.log(`🪄 Using magick variant of imageResize...`); features.push("USE_MAGICK") - externalDeps.push("sharp") } await Bun.build({ @@ -48,7 +46,6 @@ await Bun.build({ ".txt": "text", }, features: features, - external: externalDeps, }); // Add shebang to output file