mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
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.
6 lines
102 B
TypeScript
6 lines
102 B
TypeScript
import { Hello } from '@monorepo/adapter-next'
|
|
|
|
export default function Page() {
|
|
return <Hello />
|
|
}
|