preactjs / preset-vite

Preset for using Preact with the vite bundler
https://npm.im/@preact/preset-vite
MIT License
262 stars 27 forks source link

fix: unable to find TS types under ESM #142

Closed marvinhagemeister closed 2 months ago

marvinhagemeister commented 2 months ago

Noticed that the types weren't found under ESM. TypeScript these days needs separate declaration files for ESM and CJS. With the help of https://arethetypeswrong.github.io/ the changes in this PR ensure that types can be found in all scenarios.

Fixes https://github.com/denoland/deno/issues/25529