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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help