File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
packages/react-scripts/config Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ const webpackDevClientEntry = require.resolve(
45
45
const reactRefreshOverlayEntry = require . resolve (
46
46
'react-dev-utils/refreshOverlayInterop'
47
47
) ;
48
+ const reactRefreshRuntimeEntry = require . resolve ( 'react-refresh/runtime' ) ;
49
+ const reactRefreshWebpackPluginRuntimeEntry = require . resolve (
50
+ '@pmmmwh/react-refresh-webpack-plugin/lib/runtime/RefreshUtils'
51
+ ) ;
48
52
49
53
// Some apps do not need the benefits of saving a web request, so not inlining the chunk
50
54
// makes for a smoother build process.
@@ -334,6 +338,8 @@ module.exports = function (webpackEnv) {
334
338
// Make sure your source files are compiled, as they will not be processed in any way.
335
339
new ModuleScopePlugin ( paths . appSrc , [
336
340
paths . appPackageJson ,
341
+ reactRefreshRuntimeEntry ,
342
+ reactRefreshWebpackPluginRuntimeEntry ,
337
343
reactRefreshOverlayEntry ,
338
344
] ) ,
339
345
] ,
You can’t perform that action at this time.
0 commit comments