Next.js Daily: Turbopack Tree-Shaking and Runtime Prefetch Improvements
Next.js merged 19 pull requests focusing on Turbopack tree-shaking enhancements for dynamic imports and runtime prefetch optimizations. Key updates include React upstream changes and improved error handling for RSC imports.
Duration: PT2M1S
Transcript
Good morning. This is Next.js Daily for Wednesday, February 19th, 2026.
Yesterday saw significant activity with 19 merged pull requests and 20 additional commits.
Tobias Koppers merged a major tree-shaking enhancement for Turbopack, enabling proper tree-shaking for dynamic imports with destructuring patterns. The system now analyzes patterns like `const { cat } = await import('./lib')` and member access to remove unused exports from dynamically imported modules.
Josh Story merged improvements to runtime prefetch validation, refining when sync IO errors are triggered. The system now only validates sync IO in segments that would actually be runtime prefetched, making it easier to add runtime prefetching to leaf segments.
Luke Sandberg merged a refactor moving JSON module handling into the turbopack-ecmascript crate as a source transform, removing the separate turbopack-json crate and improving consistency with other non-JavaScript assets.
The team merged a React upgrade from commit 6066c782 to 4842fbea, bringing in upstream improvements across 70 files. Niklas Mischkulnig merged better error handling for invalid RSC imports via import maps, providing clearer error messages when server-only or client-only modules are imported incorrectly.
Sebastian Silbermann added comprehensive tests for focus behavior after next/link navigation, documenting current behavior before upcoming changes. Zack Tanner fixed a bug in NextURL that was unintentionally rewriting loopback addresses in query parameters.
Additional optimizations include Jimmy Lai's Buffer.indexOf implementation for faster byte scanning and several Turbopack improvements for file content hashing consistency.
What's next: The team continues work on runtime prefetch improvements and fragment scroll behavior changes behind experimental flags.
That's your Next.js update. We'll be back tomorrow with more development news.