Skip to content

Commit

Permalink
Don't warn about Turbopack config if disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Feb 3, 2025
1 parent 7a0eb3c commit f3ea66f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/next/src/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1316,6 +1316,11 @@ export function getConfiguredExperimentalFeatures(
) as (keyof ExperimentalConfig)[]) {
const value = userNextConfigExperimental[name]

if (name === 'turbo' && !process.env.TURBOPACK) {
// Ignore any Turbopack config if Turbopack is not enabled
continue
}

if (
name in defaultConfig.experimental &&
value !== defaultConfig.experimental[name]
Expand Down

0 comments on commit f3ea66f

Please # to comment.