Fixed `next-types-plugin` causing Typescript errors when `"type": "module"` is set (#49027)
### What? This fixes `next-types-plugin` causing Typescript to complain about CommonJS files importing ESM ones when `"type": "module"` is set but `experimental.typedRoutes` is not enabled. ### How? Always create a `.next/types/package.json` with `"type": "module"` instead of only doing so when `experimental.typedRoutes` is enabled. Fixes #49004
Showing
Please
register
or
sign in
to comment