Skip to content

Commit 9b2648d

Browse files
authored
build(opencode): shrink single-file executable size (anomalyco#22362)
1 parent f954854 commit 9b2648d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/opencode/script/build.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ for (const item of targets) {
197197
tsconfig: "./tsconfig.json",
198198
plugins: [plugin],
199199
external: ["node-gyp"],
200+
format: "esm",
201+
minify: true,
202+
splitting: true,
200203
compile: {
201204
autoloadBunfig: false,
202205
autoloadDotenv: false,

0 commit comments

Comments
 (0)