Next.js 12 includes a brand new Rust compiler that takes advantage of native compilation. Our Rust compiler is built on SWC, an open platform for the next generation of fast tooling. Other improvements and features include: Further speed improvements for large codebases. We’ve optimized bundling and compiling with ~3x faster refresh and ~5x faster builds.

Compilation using Rust is 17x faster than Babel and enabled by default using Next.js 12

If you have an existing Babel configuration, you will automatically be opted out.

Next.js 12

Added @vercel/nft to the framework by default

This release was brought to you by the contributions of:

Kimizuy, @devknoll, @matamatanot

Introduction of ES modules

ES modules bring an official, standardized module system to JavaScript.

The built-in Image Optimization API now supports AVIF images, enabling 20% smaller images compared to WebP

This list of formats is used to determine the optimized image format on-demand using the request’s Accept header

Source

Get in