Next.js: Turbopack's Infrastructure Upgrade

Today we're diving into some serious Turbopack infrastructure improvements with two key merged PRs focused on better error handling and variable reference tracking. The team moved error printing logic to a more central location and added comprehensive testing, while also enhancing how Turbopack handles free variable references with new reporting capabilities.

Duration: PT3M34S

Episode overview

This episode is a short developer briefing from Next.js.

It explains recent repository work in plain language.

  • Show: Next.js
  • Published: 2026-02-02T11:09:44Z
  • Audio duration: PT3M34S

Transcript excerpt

This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.

Hey there, wonderful developers! Welcome back to another episode of the Next.js podcast. I'm your host, and wow, do we have some fascinating behind-the-scenes improvements to talk about today from the Turbopack team.

You know, sometimes the most exciting changes aren't the flashy new features that make headlines - they're the foundational improvements that make everything else possible. And that's exactly what we're seeing today with some really thoughtful infrastructure work.

Let's start with the big story. Tobias from the team just merged a really smart refactoring that's all about making error handling more robust and testable. Here's what happened - they moved something called PrettyPrintError from its current home into the turbo_tasks module. Now, I know that might sound like just…

Think about it this way - when you're building error handling, you want that logic to live in the most central, reusable place possible. By moving it to turbo_tasks, they're making it available to more parts of the system while also making it easier to test. And speaking of testing, they added a whopping 475 lines…

The second merged PR is equally interesting, though the author is charmingly honest…

What…

Nearby episodes from Next.js

  1. The Great Infrastructure Upgrade
  2. Instant Navigation and Smart Caching Get Major Upgrades
  3. Instant Navigation Revolution - New Testing APIs and Performance Breakthroughs
  4. The Server Function Logging Dance
  5. Rolling Forward with v16.2.0-canary.23
  6. Turbopack Takes Center Stage with Optional Support and Cache Performance Wins
  7. Cache Revolution & Security Hardening
  8. Turbopack Gets TypeScript PostCSS Support & Worker Threads Comeback