We are excited to announce Rspack support in Next.js and look forward to partnering with the Next.js team and Vercel teams on the shared needs of the Rust foundations.
https://t.co/kS5OSvvHZo
Lots to love about this release.
1️⃣ The beginning of arguably the most exciting journey in @nextjs history: Turbopack production builds.
Like with our `next dev` efforts, focusing on the cold case first, we've been able to bring down one of the world's largest Next.js codebases, Vercel, from 7m 25s to 1m 6s, by using our new Rust-powered compiler which scales beautifully with the number of CPU cores in build machines. Things will get even wilder once incremental caching is enabled.
2️⃣ Partnering with the ecosystem (@rspack_dev) to make sure we speed up *everyone*, including complex webpack-centric setups & mature codebases.
Turbopack is extremely exciting, but since we started this project, we've been committed to backwards compatibility. For example, you can use 15.3 with Pages Router and styled-jsx if you'd like. In line with this commitment, we believe Rspack can help tremendously with codebases that have lots of webpack extensions that Turbopack doesn't support.
3️⃣ Better client routing support
We've heard a lot of feedback that you want more routing flexibility client-side. Excited to give you fine-grained control for navigations. Finally an elegant way to do transition animations 🫡
and more… Check out the release notes:
Many people might see Rspack and Turbopack as competitors and feel puzzled about our recent collaboration. In reality, the areas where our projects align and benefit from cooperation far outweigh the competition. Since we started working together, the Turbopack team has helped us significantly improve Rspack’s infrastructure. Special thanks to @_bgwoodruff for offering many valuable optimization suggestions. We've also worked closely with @kdy1dev to deeply optimize @swc_rs , which has led to performance gains for both Rspack and Turbopack. Ultimately, it's the users of both tools who benefit the most.
There's no need to "win" through attack and shitpost to each other—everyone gains more through collaboration.