Skip to content

Turbopack

Key idea:

Turbopack — Rust JS bundler from Vercel (2022+), successor to Webpack. Incremental compilation with function-level cache → 3-5x faster dev server cold start than Webpack, HMR <100ms instead of 2s. Stable in Next.js 15 (2024). Competitors: Vite (esbuild + Rollup), Bun bundler. Not general-purpose — Next.js-specific.

Below: details, example, related terms, FAQ.

Try it now — free →

Details

  • Language: Rust (via napi-rs for Node integration)
  • Architecture: Turbo engine — incremental computation framework
  • Caching: function-level (every transformation cached)
  • Next.js 15 stable for dev. Production build — still Webpack (2025-2026)
  • Benchmarks (Next.js): 3-5x faster dev start, 10x faster HMR

Example

# Use Turbopack in Next.js dev
$ next dev --turbo

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

# Production build (Webpack for now)
$ next build

Related Terms

Learn more

Frequently Asked Questions

Turbopack vs Vite?

Turbopack: Rust, tightly coupled to Next.js. Vite: esbuild (Go) + Rollup, universal (React, Vue, Svelte). For non-Next projects — Vite.

Production ready?

Dev mode — stable in Next.js 15. Production build — alpha (2026). Wait for v16 for full production.

Migrating from Webpack?

In Next.js — just the --turbo flag. For custom Webpack config — not all loaders are supported; verify compatibility.