Make react-refresh/runtime of multiple webpack projects reach a single instance by setting the global variable __singleReactRefreshRuntime__
// webpack.config.js
const SingleReactRefreshPlugin = require("single-react-refresh-plugin")
module.exports = {
plugins: [
new SingleReactRefreshPlugin()
]
}