DEV Community

Discussion on: Vite.js or How i became the fastest programmer alive.

Collapse
 
srikanth597 profile image
srikanth597

What, it doesn't make sense, how does it improve performance by 10x , it's just bundling tool isn't it? If u run it prod it's same bundle u r shipping when u does with other tools i.e webpack.

Collapse
 
ayoub3bidi profile image
Ayoub Abidi

I really know what you mean but you should read this: vitejs.dev/guide/why.html

Collapse
 
jamiebarrow profile image
James Barrow

Vite pre-bundles dependencies using esbuild. Esbuild is written in Go and pre-bundles dependencies 10-100x faster than JavaScript-based bundlers

That is the important part it seems, but there's also other useful and interesting info there to read :)

Collapse
 
redbar0n profile image
Magne

The speed boost comes from Vite doing development in unbundled mode, using ESM only. So no need to use a bundler to produce a bundle when developing. You only need to bundle for production, where it currently uses Rollup, and will switch to esbuild when it becomes mature.