From 2ec0415c1ad0b101ac7bf816adb63b6a5ca93c85 Mon Sep 17 00:00:00 2001 From: Stephan Schielke Date: Wed, 6 May 2026 16:52:19 +0100 Subject: [PATCH] fix(build): disable minify to prevent JSC readonly property errors Bun --compile --minify causes JSC to freeze mutable fold accumulator objects between iterations, producing "Attempted to assign to readonly property" on Linux x64. Effect maintainer @mikearnaldi confirms this is a Bun minifier bug (Effect-TS/effect-smol#2126). Disabling minify until Bun resolves the underlying JSC object shape optimization issue. Related: #25873, oven-sh/bun#13394, oven-sh/bun#12655. --- packages/opencode/script/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/script/build.ts b/packages/opencode/script/build.ts index 2f2edb4ff5ac..499c55561a08 100755 --- a/packages/opencode/script/build.ts +++ b/packages/opencode/script/build.ts @@ -200,7 +200,7 @@ for (const item of targets) { plugins: [plugin], external: ["node-gyp"], format: "esm", - minify: true, + minify: false, sourcemap: sourcemapsFlag ? "linked" : "none", splitting: true, compile: {