DEV Community

Cover image for The technique every React Dev should use to measure bundle size in Vite

The technique every React Dev should use to measure bundle size in Vite

Werliton Silva on May 13, 2025

You’re changing everything in your React + Vite project — swapping libraries, changing strategies, refactoring the whole thing... But do you actual...
Collapse
 
michael_liang_0208 profile image
Michael Liang

This is really interesting post.
Could you share github repo?
REPO

Collapse
 
werliton profile image
Werliton Silva

Wow. Cool.

Here the repo link, my bro:

ws-boilerplate-vite-react

Collapse
 
michael_liang_0208 profile image
Michael Liang

Thanks

Thread Thread
 
michael_liang_0208 profile image
Michael Liang

Hi Werliton,
I have checked the repo, but I am not good at Portuguese.
Can we discuss more about this on discord?

Thread Thread
 
werliton profile image
Werliton Silva

Wow, I'm sorry. Of course. I'll be working on this.

Thread Thread
 
michael_liang_0208 profile image
Michael Liang

Thanks. can you please check your email?

Thread Thread
 
werliton profile image
Werliton Silva

Wow. I see, but I am going to active my discord again.

Thread Thread
 
michael_liang_0208 profile image
Michael Liang

Please send me dm when you are free. Thanks

Collapse
 
michael_liang_0208 profile image
Michael Liang

Vite is really faster than any frameworks.
Why do you think vite is faster than others? is it related to bundle?

Collapse
 
werliton profile image
Werliton Silva

Great question. I'll even bring an excerpt from the Vite documentation to answer it.
...
"Vite pre-bundles dependencies using esbuild. esbuild is written in Go and pre-bundles dependencies 10-100x faster than JavaScript-based bundlers."

Collapse
 
werliton profile image
Werliton Silva • Edited

Guys, here is the repo link:

ws-boilerplate-vite-react