You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the handleHotUpdate plugin hook is called sequentially for every plugin. If previous plugin returns something, it will simply be overridden by later plugin.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
It used to be changed in to a first-type hook (b3b8c61), but was then reverted (#5536). It probably won't be changed to first-type again due to the explanation in the PR, so closing this.
Describe the bug
Currently the
handleHotUpdate
plugin hook is called sequentially for every plugin. If previous plugin returns something, it will simply be overridden by later plugin.https://github.com/vitejs/vite/blob/main/packages/vite/src/node/server/hmr.ts#L95
Should this be a "first" type hook like
resolveId
andload
? If some plugin returns something, then vite should stop calling others.Reproduction
none
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: