pmmmwh / react-refresh-webpack-plugin

A Webpack plugin to enable "Fast Refresh" (also previously known as Hot Reloading) for React components.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Jinjiang opened this issue · comments

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

I did this change Jinjiang/reproductions@246660e 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.