preactjs / preact-iso

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

fix: RTS peer dep w/ Vite #13

Closed rschristian closed 6 months ago

rschristian commented 6 months ago

Fixes: https://github.com/preactjs/preset-vite/issues/117

Vite's pretty weird here; when RTS isn't installed...

Alternatively, maybe it's worth reverting making RTS an optional peer dep altogether as there's also this funky issue

Edit: Worth looking at in the next major, maybe keep /prerender as the only subpath export. I don't want to break anything now though.