-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Revert "Revert "Revert "Add a --webpack flag and default --turbopack to true (#84216)""" #84389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…to true …" This reverts commit 9a76ce4.
Failing test suitesCommit: 55e3059 | About building and testing Next.js
Expand output● Static Image Component Tests › development mode › Should allow an image with a static src to omit height and width
Expand output● PPR - partial hydration › Static shell, no streaming metadata › should hydrate the shell without waiting for slow suspense boundaries ● PPR - partial hydration › No static shell, no streaming metadata › should hydrate the shell without waiting for slow suspense boundaries
Expand output● segment cache (search params) › handles rewrites to the same page but with no search params |
| .option('--turbo', 'Starts development mode using Turbopack.') | ||
| .option('--turbopack', 'Starts development mode using Turbopack.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| .option('--turbo', 'Starts development mode using Turbopack.') | |
| .option('--turbopack', 'Starts development mode using Turbopack.') | |
| .option('--turbo', 'Builds using Turbopack.') | |
| .option('--turbopack', 'Builds using Turbopack.') |
The --turbo and --turbopack flags in the next build command have incorrect help text that says "Starts development mode using Turbopack" instead of describing their build functionality.
View Details
Analysis
Incorrect help text for --turbo/--turbopack flags in next build command
What fails: In packages/next/src/bin/next.ts lines 136-137, the --turbo and --turbopack options for the build command display help text "Starts development mode using Turbopack." instead of describing their build functionality.
How to reproduce:
next build --helpResult: The help text shows "Starts development mode using Turbopack." for both --turbo and --turbopack flags under the build command, which is misleading since these flags enable Turbopack for building, not development mode.
Expected: The help text should describe building functionality (e.g., "Builds using Turbopack.") to match the actual behavior, as evidenced by:
- The build command implementation in
packages/next/src/cli/next-build.ts(line 84) uses these flags to enable Turbopack for builds - Real-world usage in
bench/module-cost/package.jsonshowing"build-turbopack": "next build --turbo" - The
devcommand correctly uses this same text (lines 174-175) since it actually starts development mode
…rbopack to true (#84216)"""" (#84394) Reverts #84389 Attempt number 3, #84374 fixed propagation of bundler environment variables to vercel cli operations, to ensure the test configuration is respected. [Deployment Tests Run 1](https://github.com/vercel/next.js/actions/runs/18146684793/job/51649631635). A fair number of failures. [Deployment Tests Run 2](https://github.com/vercel/next.js/actions/runs/18154875270). After #84395. These still have a set of failures, but i confirmed that the deployment builds are running `webpack`. The tests that are failing are related to 'prefetches' (test/e2e/app-dir/segment-cache/prefetch-runtime/prefetch-runtime.test.ts and test/e2e/app-dir/segment-cache/prefetch-layout-sharing/prefetch-layout-sharing.test.ts) and generally the error is a timeout. Recent deployment runs for canary releases are also failing, but on different tests. Trying again after #[84419](#84419). [Deployment Tests Run 3](https://github.com/vercel/next.js/actions/runs/18173375427). Failures appeared flaky, rerunning failures...
These are still failing so reverting again to keep canary in clean state https://github.com/vercel/next.js/actions/runs/18143375558/job/51641994595
Reverts #84351