pmmmwh / react-refresh-webpack-plugin

A Webpack plugin to enable "Fast Refresh" (also previously known as Hot Reloading) for React components.
MIT License
3.13k stars 193 forks source link

Is that possible to refresh when files in node_modules are changed? #782

Open Jinjiang opened 10 months ago

Jinjiang commented 10 months ago

Here is the reproduction I modified based on the official example: https://github.com/Jinjiang/reproductions/tree/react-refresh-20231030

I did this change https://github.com/Jinjiang/reproductions/commit/246660e916a58d57b9b42efe575514312d7df6ad however the UI didn't update when I modify the value of foo in node_modules/foo/index.js.

It would be great if it's possible since in our cases there are some code we generate lively into node_modules as an npm package. And it could be esm, cjs, or esm code in a cjs package.

Thanks.