next.js
0b32ddc6 - Remove --turbopack and --webpack flags from create-next-app (#89706)

Commit
25 days ago
Remove --turbopack and --webpack flags from create-next-app (#89706) ## What? Remove the `--turbopack` and `--webpack` CLI flags from `create-next-app`. ## Why? Turbopack is now the default bundler in Next.js. The `--turbopack` flag is redundant since it's already the default, and the `--webpack` flag is no longer needed as a `create-next-app` option. The only alternative bundler flag retained is `--rspack`. ## How? - Removed `--turbopack` and `--webpack` option definitions from the CLI in `packages/create-next-app/index.ts` - Simplified bundler selection logic: defaults to Turbopack, with `--rspack` as the only override - Removed `--turbopack` documentation from `packages/create-next-app/README.md` - Removed all `--no-turbopack` flags from test invocations across all create-next-app test files - Removed `--webpack` test cases from app, pages, and app-api template tests
Author
Parents
Loading