Next.js 14.2 includes development, production, and caching improvements.
Upgrade today or get started with:
Over the past few months, we’ve been working on improving local development performance with Turbopack. In version 14.2, the Turbopack Release Candidate is now available for local development:
We’ve been extensively dogfooding Turbopack with Vercel’s applications. For example, with vercel.com , a large Next.js app, we've seen:
Turbopack continues to be opt-in and you can try it out with:
We will now be focusing on improving memory usage, implementing persistent caching, and next build --turbo .
To see a list of supported and unsupported features in Turbopack, please refer to our documentation .
In addition to bundling improvements with Turbopack, we’ve worked to improve overall build…
This is an excerpt. The full article is published by Next.js Blog.
Answers to common questions regarding this article's topic, architecture, and practical applications.
Next.js 14.2 includes development, production, and caching improvements.
How It Works
For extremely large-scale Next.js applications, we noticed out-of-memory crashes (OOMs) during production builds. After investigating user reports and reproductions, we identified the root issue was over-bundling and minification (Next.js created fewer, larger JavaScript files with duplication). We’ve refactored the bundling logic and optimized the compiler for these cases. Our early tests show that on a minimal Next.js app, memory usage and cach
How It Works
In addition to bundling improvements with Turbopack, we’ve worked to improve overall build and production performance for all Next.js applications (both Pages and App Router).
General
Over the past few months, we’ve been working on improving local development performance with Turbopack. In version 14.2, the Turbopack Release Candidate is now available for local development: We’ve been extensively dogfooding Turbopack with Vercel’s applications. For example, with vercel.com, a large Next.js app, we've seen: Turbopack continues to be opt-in and you can try it out with: next dev --turbo
We will now be focusing on improving memory
General
We identified an optimization for the boundary between Server and Client Components that allows for tree-shaking unused exports. For example, importing a single Icon component from a file that has "use client" no longer includes all the other icons from that package. This can largely reduce the production JavaScript bundle size. Testing this optimization on a popular library like react-aria-components reduced the final bundle size by -51.3%. Note