---
title: Turbopack
description: Turbopack is an incremental bundler optimized for JavaScript and TypeScript, written in Rust, and built into Next.js.
url: "https://nextjs.org/docs/14/architecture/turbopack"
version: 14.2.35
lastUpdated: 2024-04-11
prerequisites:
  - "Architecture: /docs/14/architecture"
---


[Turbopack](https://turbo.build/pack) (beta) is an incremental bundler optimized for JavaScript and TypeScript, written in Rust, and built into Next.js.

## Usage

Turbopack can be used in Next.js in both the `pages` and `app` directories for faster local development. To enable Turbopack, use the `--turbo` flag when running the Next.js development server.

```json filename="package.json" highlight={3}
{
  "scripts": {
    "dev": "next dev --turbo",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  }
}
```

## Supported Features

To learn more about the currently supported features for Turbopack, view the [documentation](https://turbo.build/pack/docs/features).

## Unsupported Features

Turbopack currently only supports `next dev` and does not support `next build`. We are currently working on support for builds as we move closer towards stability.
---

For an index of all available documentation, see [/docs/14/llms.txt](/docs/14/llms.txt)