Skip to content

Update Vite & introduce manual code splitting#2761

Open
EjPlatzer wants to merge 2 commits intodevelopfrom
update-vite
Open

Update Vite & introduce manual code splitting#2761
EjPlatzer wants to merge 2 commits intodevelopfrom
update-vite

Conversation

@EjPlatzer
Copy link
Contributor

This PR updates Vite to the latest version, since we were two major versions behind.

The only breaking change to affect us was the deprecation and removal of Vite's previously-built-in splitVendorChunkPlugin plugin, which was used to implement some automatic code-splitting at build-time to optimize the load times of the site.

I have added a first pass at a more specific code-splitting strategy, splitting the code based on top-level page routes. This could be further improved in a lot of ways, and will be provided by default if/when we move to using React Router's framework mode (which has a lot of other potential benefits).

@EjPlatzer EjPlatzer self-assigned this Sep 8, 2025
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.

1 participant