4 Reasons Why You'll Love Turbopack
Vercel just introduced Turbopack, a Rust-based successor to Webpack at Next.js Conference 2022. Vercel was trying to improve the speed and reliability of the next.js app creation and it proved successful when they shifted from JavaScript to the Rust language.
Tobias Koppers, Creator of Webpack, led the building of the open-source high-performance web’s next-generation bundler and released the alpha version yesterday 25th October 2022.
Introducing Turbopack, the successor to Webpack.
— Vercel (@vercel) October 25, 2022
◆ ~700x faster than Webpack
◆ 10x faster than Vite
◆ Native incremental architecture built with Rust
◆ Support for React Server Components
◆ Support for TS, JSX, CSS & more
Now open-source in Alpha.https://t.co/dHXXFfgGOJ
Now, let's look at the 4 main reasons why Turbopack is faster than Webpack.
💠10x faster than Vite and 700x faster than Webpack
Turbopack is based on a revolutionary incremental design that allows for speedier development. It focuses on leveraging caches to ensure that the same job is never done twice. Functions will not be re-run unless their inputs have changed when the application is restarted. Because of its granular architecture, your software can bypass enormous quantities of workloads.
💠4x faster cold starts than Webpack
Because Turbopack just packs the assets needed for development, startup time is exceptionally fast. Turbopack boots up in 1.8 seconds, while Vite takes 11.4 seconds.
💠Lightning-fast HMR
Regardless of the size of your app, Hot Module Replacement (HMR) remains fast.
💠Ecosystem friendly
It will natively support React Server Components, as well as TypeScript, JSX, CSS, CSS Modules, WebAssembly, and other languages. Turbopack will eventually also power Next.js production builds, both locally and in the cloud.
Try out the alpha of Turbopack in Next.js 13 today with next dev --turbo
.
Resources:
Thanks for reading. I explained the 4 major reasons to love turbopack. If any query occurs feel free to ask in the comment section.
See you next time.
@TechAE
No comments:
Post a Comment
Thank you for submitting your comment! We appreciate your feedback and will review it as soon as possible. Please note that all comments are moderated and may take some time to appear on the site. We ask that you please keep your comments respectful and refrain from using offensive language or making personal attacks. Thank you for contributing to the conversation!