Turbopack is the latest high-performance bundler from Vercel, built in
Rust and designed to replace Webpack for the modern web. It's not just fast โ it's insanely
fast. Like 10x faster than Vite and 700x faster than Webpack (according to early benchmarks).
But this isn't just hype. Turbopack rethinks everything โ hot reloading, code transformation, file watching, module resolution โ all rewritten from scratch in Rust with deep Next.js integration.
Turbopack is currently tightly coupled with Next.js, so to use it today, you'll need to start with a Next.js app.
# Create a new Next.js app with Turbopack
npx create-next-app@latest my-turbo-app --experimental-turbo
cd my-turbo-app
# Run the dev server (with Turbopack enabled)
npm run dev
This will launch a blazing-fast dev server using Turbopack instead of Webpack. You'll instantly notice faster startup, faster reloads, and zero lag even on massive projects.
my-turbo-app/
โโโ pages/
โ โโโ index.tsx
โโโ public/
โโโ styles/
โโโ next.config.js
โโโ package.json
In your package.json, simply update your dev script:
"scripts": {
"dev": "next dev --turbo"
}
Then run npm run dev and you're now powered by Turbopack ๐
Turbopack doesn't use plugins in the traditional sense. Instead, it uses a layered architecture powered by Rust for:
// pages/index.tsx
export default function Home() {
return (
<div>
<h1>Welcome to Turbopack-powered Next.js!โก</h1>
</div>
);
}
Modify and save โ changes reflect instantly. Like... in 30ms or less. ๐ณ
Turbopack supports it flawlessly via PostCSS!
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
Then in your globals.css:
@tailwind base;
@tailwind components;
@tailwind utilities;
| Bundler | Startup | Reload | Build Speed |
|---|---|---|---|
| Webpack | ๐ข 4-6s | ๐ข 1-2s | Slow |
| Vite | โก 300ms | โก 100ms | Fast |
| Turbopack | ๐ 50ms | ๐ <20ms | Blazing |
vercel dev for previewing full-stack behaviornext dev --turbo --no-lazy to preload everythingTurbopack is the future โ plain and simple. It's the kind of tooling leap we saw when Webpack replaced Gulp, or when Vite outpaced Webpack. If you're already on Next.js, you can โ and probably should โ use Turbopack right now.
For everyone else, stay tuned. The team behind Turbopack is moving fast, and it's only a matter of time before it becomes the default for every serious frontend project.
โ Blog by Aelify (ML2AI.com)
๐ Documentation Index