Skip to content

feat(build): add --no-minify flag to opt out of minification - #46204

Closed
AlexisAMZ wants to merge 1 commit into
anomalyco:devfrom
AlexisAMZ:fix/no-minify-flag
Closed

feat(build): add --no-minify flag to opt out of minification#46204
AlexisAMZ wants to merge 1 commit into
anomalyco:devfrom
AlexisAMZ:fix/no-minify-flag

Conversation

@AlexisAMZ

Copy link
Copy Markdown

Issue for this PR

Closes #46194

Type of change

  • New feature
  • Bug fix
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds a --no-minify flag to packages/opencode/script/build.ts as a sibling to the existing flags (--sourcemaps, --single, --baseline, ...). When set, minify becomes false; default behaviour is unchanged (minify: true). This gives contributors a one-shot way to build the unminified bundle for readable stack traces and exact symbol names without editing the source.

How did you verify your code works?

  • Flag is parsed alongside the other CLI flags.
  • minify: !noMinifyFlag keeps the default at true when the flag is absent.
  • File parses cleanly (esbuild transform, same parser family as Bun).

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Allows contributors to build an unminified bundle (readable stack
traces, exact symbol names) without editing build.ts.

Closes anomalyco#46194
@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Potential Duplicate Found:

Reason: This PR appears to include the same --no-minify flag feature as a secondary change. Since PR #46204 is specifically focused on adding this flag (addressing issue #46194), there may be overlap or conflict with PR #46196's implementation.

@AlexisAMZ

Copy link
Copy Markdown
Author

Duplicate of #46196 which already implements the same --no-minify flag (identical implementation). Closing to avoid overlap — #46196 covers this plus the desktop port feature. Thanks!

@AlexisAMZ AlexisAMZ closed this Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --no-minify flag to the opencode CLI build script

1 participant