We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1afb27a commit ec3447fCopy full SHA for ec3447f
root.js
@@ -17,13 +17,21 @@ if (process.env.NODE_ENV !== 'production') {
17
'Please use `import {hot} from "react-hot-loader"` instead'
18
);
19
}
20
+
21
// remove self from a cache
22
delete cache[module.id];
23
24
+ // setup hot for caller
25
+ exports.hot = hot(parent);
26
+ } else {
27
+ fallbackHot();
28
- // setup hot for caller
- exports.hot = hot(parent);
29
} else {
30
// prod mode
31
32
+}
33
34
+function fallbackHot() {
35
exports.hot = function (a) {
36
return a;
37
};
0 commit comments