Repository navigation
fix(build): honor build.minify in framework Workers - #1017
Merged
Merged
Conversation
|
Cloudflare builds and deploys previews for this pull request. Learn more about Cloudflare previews.
Updated: |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the changes preserving app-configured framework Worker minification.
No open issues 🎉
What changed in this PR
Fixes #1016 by preserving app-configured minification for React Router, TanStack Start, and vinext Workers while retaining minification by default.
Changes:
- Respect root and environment-level
build.minifysettings. - Add regression tests for defaults and explicit minifier settings.
- Document how to disable framework server minification.
| File | Description |
|---|---|
packages/void/test/unit/framework-worker-minify.test.ts |
Tests defaults and explicit minification options. |
packages/void/src/index.ts |
Applies framework minification defaults only when unset. |
docs/guide/deployment.md |
Documents framework server minification controls. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1016
Void sets
build.minify: truefor the React Router, TanStack Start and vinext server environments.It now does that only when the app sets
build.minifyneither at the root nor in that environment.Before, Void's value replaced the app's, so turning minification off had no effect.
environments.ssr.build.minify: falseTo: …ProbeNamedError: …Builds that don't set
build.minifyare unchanged.One setting now behaves differently.
With
build.minify: 'esbuild'only inssr, the value now reaches Vite as written.Vite then runs no minifier, because it adds esbuild only from the root setting.
On main, Void replaced it with Oxc.