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
Problem is that only the latter will be called. The console will never print "A" on HMR. We ran into this error with prefresh (our Preact HMR plugin) and a custom error overlay plugin I'm currently writing.
The source of the problem is in this line where the callback for the current file is overwritten:
Describe the bug
When multiple plugins are in play it may happen that we end up with many calls to
hot.accept()
in the same file:Problem is that only the latter will be called. The console will never print
"A"
on HMR. We ran into this error withprefresh
(our Preact HMR plugin) and a custom error overlay plugin I'm currently writing.The source of the problem is in this line where the callback for the current file is overwritten:
https://github.com/vuejs/vite/blob/d1bdf5a07fdae032a69987ac238bc0d68881b3f2/src/client/client.ts#L179
Reproduction
https://github.com/marvinhagemeister/vite-hmr-bug
System Info
vite
version: 0.15.3Installedvue
version (fromyarn.lock
orpackage-lock.json
)Installed@vue/compiler-sfc
versionLogs (Optional if provided reproduction)
vite
orvite build
with the--debug
flag.The text was updated successfully, but these errors were encountered: