Testing out vite 8 on SPA: Vite 8 is 5x faster
peterbe.com·1d
🎬WebCodecs API
Preview
Report Post

Vite 8 came out this week. Great! I have a single page app (the admin app for this blog) that is built on Vite, Mantine, TypeScript, and react-router. I tried upgrading to vite@8.0.0-beta.0 to see if it’s any faster. tl;dr; it’s 5 times faster. From 3.8 seconds to build, down to 0.8 seconds.

The app is just a one-man small side project but it uses some pretty heavy dependencies such as Mantine, @tanstack/react-query, prism-react-editor, react-router to name a few. When you run vite build, it generates a dist/ directory whose dist/assets/ directory 11Mb in total and consists of over 300 different .js files. The reason it’s so many is because the app uses a lot of code splitting.

[V…

Similar Posts

Loading similar posts...