anomalyco / anomalyco/opencode
Add --no-minify flag to the opencode CLI build script
@nexxeln is already working on this.
Since Aug 29, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Title:
Add --no-minify flag to the opencode CLI build script
Description:
packages/opencode/script/build.ts already accepts --sourcemaps, --single,
--baseline, --skip-install, --skip-embed-web-ui, but there is no way to
opt out of minification. When a regression only reproduces against the
unminified bundle (readable stack traces, exact symbol names, dev-only
breakage hidden by the minifier), the only current option is to edit
build.ts and revert before committing. A --no-minify sibling flag keeps the
default behaviour and gives contributors a one-shot escape hatch.
Plugins: n/a
OpenCode version: dev (dc4449df0d)
Steps to reproduce:
cd packages/opencode && bun run script/build.ts --no-minifyis not a
recognised flag; build still runs withminify: true.- Edit
build.tsand changeminify: truetominify: false; the next
build uses the unminified bundle.
Expected behaviour:
bun run script/build.ts --no-minifyshould produce a non-minified bundle
without source edits.- Default behaviour (no flag) should be unchanged:
minify: trueas before.
Actual behaviour:
--no-minifyis silently ignored today.
Operating System: n/a
Terminal: n/a
Related / duplicate check: no related upstream issue found.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.