breaking: precompress by default #11945
Merged
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.
I'd like to merge this together with #11653 where we're already doing a major version bump in
adapter-node
.I was looking at a major SvelteKit project and they were just using the default options and not precompressing assets, which would have made their site much faster. It made me wonder why we weren't doing it by default as I believe we should have our defaults align with making sites fast. This feature was originally introduced in #1693. It was made
false
by default there as they were worried about adding to build time. I tried building the site with bothtrue
andfalse
and there was minimal if any difference in speed, so I don't think we should let that block usShould we just remove the option and always do it by default? I don't really see why you'd want to be able to disable it. There are potentially other options you'd want to be able to set though (#10789). Removing the option would free up space for new options. Or perhaps we should make it
precompress.enabled
as another way of freeing up the namespace