next.js
6e28198b - Default moduleResolution to 'bundler' instead of 'node'

Commit
29 days ago
Default moduleResolution to 'bundler' instead of 'node' The writeConfigurationDefaults function was writing 'node' as the default moduleResolution value for auto-generated tsconfig.json, while create-next-app templates already used 'bundler'. This inconsistency meant that projects set up without create-next-app got the legacy 'node' setting. Since TypeScript 5.0+ (and Next.js requires >= 5.1) supports 'bundler' moduleResolution, and Turbopack is the default bundler, 'bundler' is the correct modern default. Existing projects with 'node' are not affected since it remains in the parsedValues allow-list. Co-authored-by: Sebastian "Sebbie" Silbermann <silbermann.sebastian@gmail.com>
Author
Parents
Loading