Skip to content

Commit 650cf7d

Browse files
committed
fix: skip Node.js fallback due to top-level await
1 parent 1d6fe66 commit 650cf7d

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

packages/opencode/script/build.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,8 @@ for (const item of targets) {
192192
await $`rm -rf ./dist/${name}/bin/tui`
193193
await $`cp ./bin/opencode ./dist/${name}/bin/opencode`
194194

195-
// For baseline builds, also create a Node.js-compatible bundle
196-
if (item.avx2 === false) {
197-
const nodeOutfile = `./dist/${name}/bin/opencode-node.js`
198-
await $`bun build ./src/index.ts --target=node --outfile=${nodeOutfile} --format=cjs`
199-
await $`chmod +x ${nodeOutfile}`
200-
}
195+
// Note: Node.js fallback for baseline builds skipped - bun build --target=node doesn't support top-level await
196+
// The launcher will try to use the Bun binary which may not work on older CPUs
201197
await Bun.file(`dist/${name}/package.json`).write(
202198
JSON.stringify(
203199
{

0 commit comments

Comments
 (0)