From 9b2648dd57cea6005361bfceb4ee26723c1b6f30 Mon Sep 17 00:00:00 2001 From: Luke Parker <10430890+Hona@users.noreply.github.com> Date: Tue, 14 Apr 2026 15:49:26 +1000 Subject: [PATCH] build(opencode): shrink single-file executable size (#22362) --- packages/opencode/script/build.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/opencode/script/build.ts b/packages/opencode/script/build.ts index f760899c39..c330bc0e3d 100755 --- a/packages/opencode/script/build.ts +++ b/packages/opencode/script/build.ts @@ -197,6 +197,9 @@ for (const item of targets) { tsconfig: "./tsconfig.json", plugins: [plugin], external: ["node-gyp"], + format: "esm", + minify: true, + splitting: true, compile: { autoloadBunfig: false, autoloadDotenv: false,