HMR not working when triggered from vite plugin #5783
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
ecosystem: external
External library doesn't work
feat: hmr
Related to HMR (scope)
What version of
astro
are you using?1.9.0, 1.9.1
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm, yarn
What operating system are you using?
Windows
Describe the Bug
vite-plugin-glsl
(for example) is using vite'sserver.restart
method to trigger HMR when a shader file is changed and saved. When using this plugin withastro
, after saving a file, dev server crashes unless the following setting is added toastro.config.mjs
:Original bug report here;
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-ctfwyn?file=astro.config.mjs
Participation
The text was updated successfully, but these errors were encountered: