fix(build): externalize socks + sharp in node-server bundle

Bun's bundler refused to inline socks and sharp (both ship
.node native addons), so the Windows node-server build
failed with 'Could not resolve: socks / sharp'.

Added --external socks and --external sharp to
browse/scripts/build-node-server.sh, matching the script's
own documented rule for .node-addon deps. Verified:
bash build-node-server.sh -> exit 0, emits server-node.mjs;
bun run build -> exit 0 (all 6 artifacts compile).
This commit is contained in:
Spooks444 2026-07-14 04:39:21 -05:00
parent a3259400a3
commit aeeacf17d5
1 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,9 @@ bun build "$SRC_DIR/server.ts" \
--external playwright-core \
--external diff \
--external "bun:sqlite" \
--external "@ngrok/ngrok"
--external "@ngrok/ngrok" \
--external socks \
--external sharp
# Step 2: Post-process
# Replace import.meta.dir with a resolvable reference