Member-only story
Vite Just Got A Worthy Competitor
In my last article I have covered features of Next.js 13. One of these features is a significant performance improvement. As the Turbopack, a new alpha Next.js bundler, as the page states, is up to 700 times faster than Webpack.
Also, it is significantly faster than Vite. Here is a screen shot from the Turbopack we site that tells about it:
It says Turbopack is ten times faster than Vite. It didn’t go without the attention of Evan You, Vite bundler creator.
Since Vercel didn’t provide at that time benchmarks used to back up their numbers for HMR, Evan ran his own, and it appeared Next.js 13 with Turbopack (both from Vercel company) was only two times faster than Vite for root:
Going further, he noticed that the performance difference may be caused by Vite using Babel on default, rather than SWC.
According to Evan switching Vite to SWC is easy, and after doing it he got these results:
Meaning, both were comparably fast for root, but again Next.js 13 with Turbopack being almost two times faster for a leaf than Next.js with Vite.