preactjs / preset-vite

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

feat: Prerender data API #141

Closed rschristian closed 2 months ago

rschristian commented 2 months ago

Same API we used for WMR.

I believe I skipped adding this originally as preact-iso was injecting its own script tag as a marker for hydration and I wasn't quite sure whether this should fall on the prerender plugin side of things or iso. I'm leaning towards the prerender plugin now (as shown by this PR), but can go either way.