Skip to content

Commit a03a3b4

Browse files
committed
fix a logic error
1 parent 9e79d29 commit a03a3b4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/create-next-app/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,10 +452,9 @@ async function run(): Promise<void> {
452452
})
453453
opts.turbopack = Boolean(turbopack)
454454
preferences.turbopack = Boolean(turbopack)
455-
if (!turbopack) {
456-
opts.webpack = true
457-
}
458455
}
456+
// If Turbopack is not selected, default to Webpack
457+
opts.webpack = !opts.turbopack
459458
}
460459

461460
const importAliasPattern = /^[^*"]+\/\*\s*$/

0 commit comments

Comments
 (0)