aleclarson / vite-tsconfig-paths

Support for TypeScript's path mapping in Vite
MIT License
1.24k stars 43 forks source link

fix: add missing type entry to pkg.exports #64

Closed gunters63 closed 1 year ago

gunters63 commented 1 year ago

See: https://github.com/aleclarson/vite-tsconfig-paths/issues/62

Needed for Typescript 4.7 in moduleResolution Node16 mode.

See also: https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/ and https://www.typescriptlang.org/docs/handbook/esm-node.html (example at the end of the page)