Sfoglia il codice sorgente

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

alberto 3 mesi fa
parent
commit
1e216e12dc
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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"],