Skip to content

Commit ad48b8f

Browse files
authored
Turbopack: Remove beta warning (#82797)
Feedback from @feedthejim: - It's scarier than it needs to be, beta builds should be fine for most users. - This is opt-in, so users probably aren't going to use it by accident. - We don't tend to do this level of warning for other feature flags.
1 parent ff756b2 commit ad48b8f

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

packages/next/src/build/index.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4022,10 +4022,6 @@ export default async function build(
40224022
// Ensure we wait for lockfile patching if present
40234023
await lockfilePatchPromise.cur
40244024

4025-
if (isTurbopack && !process.env.__NEXT_TEST_MODE) {
4026-
warnAboutTurbopackBuilds()
4027-
}
4028-
40294025
// Ensure all traces are flushed before finishing the command
40304026
await flushAllTraces()
40314027
teardownTraceSubscriber()
@@ -4050,14 +4046,6 @@ function errorFromUnsupportedSegmentConfig(): never {
40504046
process.exit(1)
40514047
}
40524048

4053-
function warnAboutTurbopackBuilds() {
4054-
Log.ready(
4055-
`Turbopack builds are ${bold('beta')}.\n\n` +
4056-
' Please see our docs https://nextjs.org/docs/app/api-reference/turbopack for information on known differences with webpack builds.\n\n' +
4057-
' Provide feedback for Turbopack builds at https://github.com/vercel/next.js/discussions/77721'
4058-
)
4059-
}
4060-
40614049
function getBundlerForTelemetry(isTurbopack: boolean) {
40624050
if (isTurbopack) {
40634051
return 'turbopack'

0 commit comments

Comments
 (0)