sinedied / svelte-web-components-template

A base template for building a shareable web components library with Vite, Svelte and TypeScript.
88 stars 10 forks source link

Component refresh #4

Closed paolodina closed 1 year ago

paolodina commented 1 year ago

Is component refresh supposed to update the page on save?

In my case I've been able to make it work adding this js to index.html (blog post).

Btw, nice template!

sinedied commented 1 year ago

You're right, seems this is a regression since the Vite migration. HMR doesn't to play well with web components (as seen in the blog post you linked 😉 ), so I enabled proper reload instead.