You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SvelteKit2 + Vite 5 no longer gzip encodes when using vite preview. Used to work with SK1 and Vite4/Vite5. No longer works after upgrading to SK2.
The bytes transferred is over double what it should be, since there is no gzip compression for the JavaScript assets.
It's not an issue for production, but it is a DX issue for local development, as I always preview to get an idea on the bundle size of what would go "over-the-wire" in production.
Describe the bug
SvelteKit2 + Vite 5 no longer gzip encodes when using vite preview. Used to work with SK1 and Vite4/Vite5. No longer works after upgrading to SK2.
The bytes transferred is over double what it should be, since there is no gzip compression for the JavaScript assets.
It's not an issue for production, but it is a DX issue for local development, as I always preview to get an idea on the bundle size of what would go "over-the-wire" in production.
The precopress setting is in the config.
Thank you!
Reproduction
Set up a new SK2 project or migrate an existing project. Use the static adapter.
Build. Preview.
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: