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
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 vuejs/core instead.
Describe the bug
hmr: 编辑 .vue 组件 template 后,再去编辑组件中导入的外部脚本时,外部脚本的 hmr 失效
这是一个通过 npm 创建的 vite vue3 项目,纯净的,未导入任何插件。
修改 HellowWorld.vue 文件 template 后,修改 data.js 的 text 值,text 值不能热更新;
代码
HelloWorld.vue
data.ts
Reproduction
https://stackblitz.com/edit/vitejs-vite-vhs1cm?file=vite-project%2Fsrc%2Fcomponents%2FHelloWorld.vue,vite-project%2Fsrc%2Fcomponents%2Fdata.ts&terminal=dev
Steps to reproduce
HelloWorld
改为 Hello; // hmr 正常运行如果 HelloWorld.vue 中更改的是 script 脚本,则 hmr 正常
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: