build(opencode): shrink single-file executable size (#22362)
This commit is contained in:
@@ -197,6 +197,9 @@ for (const item of targets) {
|
|||||||
tsconfig: "./tsconfig.json",
|
tsconfig: "./tsconfig.json",
|
||||||
plugins: [plugin],
|
plugins: [plugin],
|
||||||
external: ["node-gyp"],
|
external: ["node-gyp"],
|
||||||
|
format: "esm",
|
||||||
|
minify: true,
|
||||||
|
splitting: true,
|
||||||
compile: {
|
compile: {
|
||||||
autoloadBunfig: false,
|
autoloadBunfig: false,
|
||||||
autoloadDotenv: false,
|
autoloadDotenv: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user