Definition
Turbopack is a Rust-based, incremental JavaScript and TypeScript bundler built by Vercel, designed as a faster successor to Webpack for use primarily within Next.js.
Overview
Turbopack is built around function-level, incremental computation: rather than recomputing an entire build when a file changes, it caches the results of individual build steps and only reprocesses what's actually affected, aiming to make both cold starts and hot module replacement fast even in very large applications. It's written in Rust and shares underlying compilation infrastructure with SWC, also from the same broader Vercel/Next.js toolchain. It is positioned as the eventual successor to Webpack inside Next.js, where it can be enabled for both local development and production builds, promising large speedups on cold starts and file-change rebuilds for big codebases compared to Webpack's from-scratch rebuild model. Turbopack is often mentioned alongside Vite (web) as part of the broader trend toward faster, often Rust- or Go-based build tooling, though Turbopack's primary focus and tightest integration remains within the Next.js framework rather than being a general-purpose bundler for any JavaScript framework.
Key Features
- Rust-based bundler built for incremental, function-level caching of build steps
- Designed as a faster successor to Webpack within the Next.js ecosystem
- Shares compiler infrastructure with SWC
- Aimed at fast cold starts and hot module replacement in large codebases
- Usable for both local development and, increasingly, production builds in Next.js