[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] 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
After making random changes in this file, hot update can no longer get the viewer value; Finally, it was found that the router in http affected him;
Reproduction
https://github.com/an501920078/bugDemo.git
Steps to reproduce
pnpm i pnpm run dev Edit initHomeView.ts save
System Info
Used Package Manager
pnpm
Logs
No response
Validations