Turbopack is Next.js’s new bundler written in Rust. It’s incredibly fast and will eventually replace Webpack.

Enabling Turbopack

# Development
npm run dev -- --turbo

# Or in package.json
{
  "scripts": {
    "dev": "next dev --turbo"
  }
}

Performance Benefits

  • 10x faster than Webpack
  • Incremental compilation
  • Better caching
  • Improved HMR (Hot Module Replacement)

Turbopack is still in beta but shows incredible promise for the future of web development.