react-refresh-webpack-plugin icon indicating copy to clipboard operation
react-refresh-webpack-plugin copied to clipboard

A new option to avoid @pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js being injected

Open Jack-Works opened this issue 3 years ago • 0 comments

I need to install react devtools hook (not from the devtools extension) before the reach refresh hook, so I need to inject those hooks manually.

Now I use webpack config to alias it to a null module.

alias[require.resolve('@pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js')] =
                        require.resolve('./package-overrides/null.js')

Jack-Works avatar Oct 20 '22 05:10 Jack-Works