sveltejs / svelte-hmr

HMR commons for Svelte 3
ISC License
204 stars 20 forks source link

svelte5 npm package unmatch version #89

Closed zhuzhuaicoding closed 6 months ago

zhuzhuaicoding commented 7 months ago

├─┬ @sveltejs/vite-plugin-svelte 3.0.2 │ └─┬ svelte-hmr 0.15.3 │ └── ✕ unmet peer svelte@"^3.19.0 || ^4.0.0": found 5.0.0-next.48

Aloso commented 6 months ago

That might have something to do with HMR not yet being implemented for Svelte 5:

23:59:01 [vite-plugin-svelte] Your are using Svelte 5.0.0-next.79. Svelte 5 support is experimental, breaking changes can occur in any release until this notice is removed.
work in progress:
 - svelte-inspector is disabled until dev mode implements node to code mapping
 - hmr for .svelte files is disabled until hmr api is implemented
dominikg commented 6 months ago

yes, svelte5 is going to have built-in support for hmr, this package is only needed for svelte4