diff --git a/packages/react-fast-refresh/client.js b/packages/react-fast-refresh/client.js index e04feedf7c..824f0b61e9 100644 --- a/packages/react-fast-refresh/client.js +++ b/packages/react-fast-refresh/client.js @@ -18,7 +18,7 @@ if ( ) { let inBefore = false; module.hot.onRequire({ - before(module) { + before: function (module) { if (inBefore) { // This is a module required while loading the react refresh runtime // Do not initialize it to avoid an infinite loop