3 ms·
I'm a little skeptical as well. Vite is fast I just checked a code base that's at ~900 modules, and vite is ready to serve dev requests in well under a second
by tln 4y ago
I'm a little skeptical as well. Vite is fast
I just checked a code base that's at ~900 modules, and
vite is ready to serve dev requests in well under a second.
- omnimus 4y agoJust note it's not Vite but esbuild that's doing the dev bundling.
- 323 4y agoThat is misleading. Open the browser and request the app and you'll see the first cold load will take many many seconds since Vite didn't load and compile the app yet. If you reload the second time will be much faster since it will serve from it's memory cache.
- tln 4y agoThat does take a few seconds, for me. But I could see how that could get painful on larger apps. I'm not trying to mislead... but it would be good to know what they are actually measuring.
- 323 4y agoThey are measuring the time until Vite is ready to serve requests, but then they compare it to the time of the webpack dev server, not mentioning that WebPack will have everything compiled at that time unlike Vite. Vite is indeed much faster than webpack, but they use this highly misleading "vite ready to serve in 100 ms" stat.