next.js
aa3ba7ed - Avoid deprecated TS node10 moduleResolution defaults (#91847)

Commit
16 days ago
Avoid deprecated TS node10 moduleResolution defaults (#91847) TypeScript 6 treats `moduleResolution: "node"` as deprecated (`node10`) and can fail builds with `TS5107`. This update keeps Next.js tsconfig defaults compatible with modern TypeScript by preferring `moduleResolution: "bundler"` for modern module modes, while preserving `"node"` for `commonjs`/`amd` configs where `bundler` is invalid. Also updates the related tests/snapshots to match the new defaults.
Author
Parents
Loading