[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
Description: For the default setup created by "yarn create vite-extra" (with SSR) HMR does not work
Expectation: When I change a text in App.tsx, I should immediately see the change in my browser
Reproduction
https://github.com/jvanmaaren/vite4-react-ssr
Steps to reproduce
yarn create vite-extra
(ssr+react, typescript + SWC)yarn install
You can also see the problem in this sandbox: https://codesandbox.io/p/github/jorgvm/vite4-react-ssr/draft/boring-cherry
All files were created by the "yarn create vite-extra" command
System Info
Used Package Manager
yarn
Logs
No response
Validations