Closed mseeley closed 1 month ago
Changing createViteContext
to use server.ws
instead of server.hot
restored functionality
I see, this API is new in Vite 5, I changed it because of the deprecation message
Apparently they deprecated hot
now, so going back to ws
will work for both vite versions ✨
Thank you very much @posva!
The change from
server.ws.send
toserver.hot.send
has broken HMR.https://github.com/posva/unplugin-vue-router/blame/d60101cb607e42a3642f72c415adc3e9c0159390/src/core/vite/index.ts#L16
https://github.com/posva/unplugin-vue-router/commit/c98ddbf33a824b48aacdcd649e3b5b676c0df8c1 looks like a WIP. Was it meant to go directly into
main
?