From 087965d0f74a31fc9f894e1a9378eff2d06101f3 Mon Sep 17 00:00:00 2001 From: Per Bergland Date: Sat, 20 Nov 2021 11:44:07 +0100 Subject: [PATCH] Make code compatible with IE11 - #11772 --- packages/react-fast-refresh/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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