react-refresh-webpack-plugin
react-refresh-webpack-plugin copied to clipboard
A new option to avoid @pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js being injected
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')