From 5e60aa52fd7b43b14c33c99ecbe082d5e6e0b348 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,