Turbopack — JS bundler на Rust от Vercel (2022+), преемник Webpack. Incremental compilation с function-level cache → dev server cold start 3-5x быстрее Webpack, HMR <100ms вместо 2s. Stable в Next.js 15 (2024). Competitor: Vite (esbuild + Rollup), Bun bundler. Не general-purpose — Next.js-specific.
Ниже: подробности, пример, смежные термины, FAQ.
# Use Turbopack в Next.js dev
$ next dev --turbo
# Or в package.json
"scripts": {
"dev": "next dev --turbo"
}
# Production build (Webpack сейчас)
$ next buildTurbopack: Rust, tightly coupled с Next.js. Vite: esbuild (Go) + Rollup, universal (React, Vue, Svelte). Для не-Next проектов — Vite.
Dev mode — stable в Next.js 15. Production build — alpha (2026). Ждите v16 для full production.
В Next.js — просто флаг --turbo. Для custom Webpack config — не все loaders supported; проверьте compatibility.