Turbopack and Webpack
What you need to know
Turbopack and Webpack are bundlers: they resolve modules and prepare application assets for execution. Next.js 16 uses Turbopack by default for both development and production builds; Webpack remains an explicit alternative.
By the end, you can: distinguish bundler configurations; choose a documented build lane.
Select a development and production bundler
{ "scripts": { "dev": "next dev", "build": "next build", "build:webpack": "next build --webpack", "start": "next start" }}Expected behavior: The default scripts use Turbopack on Next.js 16; the alternate build explicitly requests Webpack. Run start against the chosen completed build.
How it works
The framework orchestrates multiple outputs for server and browser. A bundler follows imports, applies transformations and produces chunks; the compiler transforms language syntax, while TypeScript checking verifies type contracts. These jobs are related but not identical. Next.js uses SWC for many transformations, and React Compiler integration is a separate configuration choice with its own prerequisites. Turbopack configuration belongs under the top-level turbopack key in Next.js 16. A custom webpack hook is not a Turbopack plugin. Next.js 16 rejects a default Turbopack production build when custom webpack configuration is present to prevent silently ignoring it. Choose the Webpack build lane or migrate the configuration; merely selecting Turbopack explicitly does not translate the hook. Audit plugins that add such hooks indirectly. Fast Refresh is development behavior, not proof production navigation works. Compare cold and warm builds in separate owned workspaces with identical dependencies and record actual results before claiming a performance advantage.
A minimal Turbopack alias
// next.config.tsimport type {NextConfig} from 'next';const config:NextConfig={turbopack:{resolveAlias:{'catalog-data':'./lib/edition-data.ts'}}};export default config;Expected behavior: A compatible Turbopack build resolves catalog-data to the fixture module. TypeScript needs corresponding type/module resolution if the alias is used in TS.
Common mistake
Do not assume Webpack loaders and plugins work in Turbopack. Avoid running two builds concurrently into the same output directory.
Practice and verification
Compare the two bundler lanes for the staged fixture, listing dependency versions, output locations, command, exit code and exact route assertions. Do not fabricate timings.
Scope: Proposed Next.js 16.x / React 19, Cache Components disabled unless noted. Framework, browser and component examples are staged; local standalone tests are reported separately. Exact dependency patches and platform contracts pending.
Further reading: Upgrade · Turbo · Turbo Config