Next.js 16.1 — Turbopack caching, bundle analyzer, and easier debugging
Key Points
- Turbopack file system caching is stable
- Experimental interactive bundle analyzer
- Use next dev --inspect for targeted debugging
Summary
Next.js 16.1 improves developer feedback loops and stability, with Turbopack file system caching enabled by default for next dev, an experimental interactive Bundle Analyzer, better handling of transitive external dependencies, and an easier Node.js debugging flow. The release also includes smaller installs, new upgrade tooling, and several developer tooling improvements aimed at faster local builds and clearer diagnostics.
Key Points
- Turbopack file system caching for
next devis stable and on by default. Compiler artifacts are persisted to disk, dramatically reducing restart compile times (examples: large internal app cold 15s → cached 1.1s ~14× faster). - Experimental Next.js Bundle Analyzer for Turbopack: interactive UI to inspect production bundles, filter by route, view full import chains, trace server→client imports, and analyze CSS/assets. Use the experimental analyze command to launch the tool.
- Easier debugging: run
next dev --inspectto attach the Node.js inspector only to the running app process (no need forNODE_OPTIONS=--inspect). - Transitive external dependencies: Turbopack now resolves and externalizes transitive deps specified via
serverExternalPackages, removing the need to add indirect packages to yourpackage.json. - Other practical improvements:
- ~20MB smaller installs due to Turbopack caching simplifications.
- New
next upgradecommand to streamline upgrades. - DevTools MCP
get_routestool to list app routes. generateStaticParamstiming included in dev request timings.next buildlogs worker thread counts for page data collection and static generation.- Improved async import bundling in dev and relative source map paths for server code.
Upgrade
- Automated:
npx @next/codemod@canary upgrade latest - Manual:
npm install next@latest react@latest react-dom@latest - New project:
npx create-next-app@latest
Notes
- Bundle Analyzer is experimental and will be improved; please share feedback on the dedicated GitHub discussion. File system caching for
next buildwill be stabilized in a future release.