
On top of hiring DongYoon Kang, the creator of SWC, and Maia Teegarden, a contributor to Parcel, we are continuing to invest in the Rust ecosystem. Minification is opt-in until it’s thoroughly validated as it replaces multi-year infrastructure. You can also opt-in to using the Rust compiler for minification. If you're using a custom Babel setup, please share your configuration. We have plans to port parsing for popular libraries like styled-components, emotion, and relay soon. If you have an existing Babel configuration, you will automatically be opted out.

The new Rust compiler is backwards compatible. This meant we had to port the Babel transformations in Next.js to Rust, including a brand new CSS parser in Rust used to implement the styled-jsx transform.

Underlying webpack improvements: We've made numerous improvements to webpack, including optimizing Fast Refresh and making on-demand entries more reliable.Ĭompilation using Rust is 17x faster than Babel and enabled by default using Next.js 12, replacing transforming JavaScript and TypeScript files.Improved observability into performance: Next.js now outputs Fast Refresh timing in the console for both client and server compilation, including the number of modules and files compiled.Further speed improvements for large codebases: We've validated the Rust compiler with some of the largest Next.js codebases in the world.Other improvements and features include: Results from using the new Rust compiler with large Next.js codebases. We've optimized bundling and compiling with ~ 3x faster refresh locally and ~ 5x faster builds for production. Our Rust compiler is built on SWC, an open platform for the next generation of fast tooling. Next.js 12 includes a brand new Rust compiler that takes advantage of native compilation. We want to make every Next.js application build faster for production, and get instant feedback in local development.
#Nextjs unpkg update
Update today by running npm i Faster builds and Fast Refresh with Rust compiler React Server Components (alpha): Try it today, including SSR streaming.URL Imports (alpha): Import packages from any URL, no installs required.Native ES Modules Support: Aligning with the standardized module system.Bot-aware ISR Fallback: Optimized SEO for web crawlers.AVIF Support: Opt-in for 20% smaller images.

#Nextjs unpkg full
