Next.js Daily

Next.js Daily: Turbopack Resolver Fixes and Performance Improvements

The Next.js team merged 18 pull requests focused on Turbopack improvements, including subpath import fixes, webpack loader error handling, and memory optimizations. The rootParams feature is now enabled by default.

Duration: PT2M7S

https://podlog.io/listen/next-js-daily-cb14d90b/episode/next-js-daily-turbopack-resolver-fixes-and-performance-improvements-177408e8

Transcript

Good morning. This is Next.js Daily for May 20th, 2026.

Niklas Mischkulnig merged a fix for Turbopack subpath imports pointing to external packages, resolving issues where the imports field wasn't properly handling external package mappings according to Node.js specifications.

Luke Sandberg improved error reporting when webpack loaders crash in Turbopack. The new implementation captures stdout and stderr from crashed processes, provides clearer error messages with loader names, and prevents cascading failures in the issue formatter.

Josh Story enabled rootParams by default, removing the experimental flag. The feature remains limited for route handlers and Server Actions, with expanded support planned for future releases.

Sandberg also optimized memory usage by stopping the pinning of compiled chunk sources on EcmascriptBuildNodeChunkVersion. This change reduces memory consumption by approximately 1.1 gigabytes in warm builds and eliminates unnecessary recomputations during warm restarts.

Niklas Mischkulnig added instrumentationClientInject to Next.js configuration, allowing client bootstrap code injection through next.config.js without modifying user source files.

Additional improvements include enhanced MCP tools with a compile_route function for on-demand route compilation, OpenTelemetry trace propagation fixes for verbose mode spans, and devlow benchmark enhancements with statistical sampling and comparison reports.

Hendrik Liebau fixed a cross-parameter leak issue affecting prefetch behavior with cached navigations, while Tim Neutkens updated server-inserted HTML to use Node streams when enabled.

What's next: The team continues optimizing Turbopack performance and expanding rootParams functionality. Documentation updates are being rolled out for the new instrumentationClientInject feature.

That's your Next.js update for today.