This will fail with: "No matching HTML proxy module found from /?html-proxy&index=0.js"
There is a similar issue on https://github.com/vitejs/vite/issues/5061, but it's considered closed, so I'm not sure if this particular case is different, not supported or a bug, since the same changes work on non ssr normal examples.
[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
Scaffold any SSR example from create-vite-extra and to the following changes:
Wrap the code of the client entry point in
Change the script src to manually import the function
This will fail with: "No matching HTML proxy module found from /?html-proxy&index=0.js"
There is a similar issue on https://github.com/vitejs/vite/issues/5061, but it's considered closed, so I'm not sure if this particular case is different, not supported or a bug, since the same changes work on non ssr normal examples.
Reproduction
https://stackblitz.com/edit/stackblitz-starters-7m9qws?file=index.html
Steps to reproduce
Run
npm install
followed bynpm run dev
System Info
Used Package Manager
npm
Logs
No response
Validations