HMR only updates the template
HMR only updates the template when both the template and style code are modified
I think this line causes the error. src/node/serverPluginHmr.ts:208
https://github.com/vuejs/vite/blob/de131ac6bbda2345a6e6a6f4efbb4f97f6d77123/src/node/serverPluginHmr.ts#L202-L209
A simple playground (hot-reload) for vue-sfc and other frameworks, languages 😆 https://coldemo.js.org/#/playground/vue-sfc.vue https://coldemo.js.org/ @zzetao