Browse Source

fix(opencode): resolve Bedrock hang by using node build conditions (#30873)

alberto 4 months ago
parent
commit
1e216e12dc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/opencode/script/build.ts

+ 1 - 1
packages/opencode/script/build.ts

@@ -165,7 +165,7 @@ for (const item of targets) {
   const workerRelativePath = path.relative(dir, parserWorker).replaceAll("\\", "/")
 
   await Bun.build({
-    conditions: ["browser"],
+    conditions: ["node"],
     tsconfig: "./tsconfig.json",
     plugins: [plugin],
     external: ["node-gyp"],