Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix svelte story files not reloading (#362)
Fixes #52 Svelte story files have the same issue as react story files. The webpack HMR seems to prevent vite's HMR from working correctly, so we need to exclude story files as HMR boundaries in vite. The svelte plugin doesn't expose as nice of a way to do this, but thanks to a suggestion from @domyen in sveltejs/vite-plugin-svelte#321 (comment), I was able to make it work. To test: Start up the svelte example, edit a `.stories.svelte` file, and confirm that the page reloads and shows your changes.
- Loading branch information