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
What do you mean by "the Jinjiang's solution"?
The team already told Jinjiang that we will try to make this setup works if it doesn't add complexity to Vite, but we still recommend using workspaces instead of having editable source code in node_modules
Describe the bug
When modifying files inside node_modules, the HMR doesn't work.
I guess it's because this line of code reject the following logics
https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/src/index.ts#L165
Maybe it could be simply combined with
opt.include
to let those files pass.Thanks.
Reproduction
https://github.com/Jinjiang/reproductions/tree/vite-react-hmr-202404
Steps to reproduce
pnpm install
andpnpm dev
node_modules/foo/index.mjs
to see whether the page is reloadedSystem Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: