diff --git a/scripts/build-binaries.sh b/scripts/build-binaries.sh index 8b9cd086b1..43ba159626 100755 --- a/scripts/build-binaries.sh +++ b/scripts/build-binaries.sh @@ -75,17 +75,13 @@ for target_pair in "${TARGETS[@]}"; do IFS=':' read -r target outfile <<< "$target_pair" echo "Building $target → $outfile" - # --bytecode excluded for Windows cross-compile (inconsistent Bun support) - BYTECODE_FLAG="" - if [[ "$target" != *windows* ]]; then - BYTECODE_FLAG="--bytecode" - fi - - # Always --minify to match release parity + # --bytecode disabled: Bun 1.3.11 produces broken bytecode for our module graph + # (likely triggered by @mariozechner/pi-coding-agent's CJS/ESM interop shape) — + # "TypeError: Expected CommonJS module to have a function wrapper" at runtime. + # Always --minify to match release parity. bun build \ --compile \ --minify \ - $BYTECODE_FLAG \ --target="$target" \ --outfile="$outfile" \ packages/cli/src/cli.ts