preactjs / preact-iso

Isomorphic utilities for Preact
MIT License
69 stars 9 forks source link

fix: TS types w/ `NodeNext` module resolution #2

Closed rschristian closed 1 year ago

rschristian commented 1 year ago

https://arethetypeswrong.github.io/?p=preact-iso%402.3.1

Importing from the bare module results in broken types with the NodeNext module resolution, as TS expects .js extensions to refer to the other .d.ts types.