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 9ff0cfe commit 174c1ceCopy full SHA for 174c1ce
index.js
@@ -24,7 +24,6 @@ module.exports = function (source) {
24
' var getHotUpdateAPI = require(' + JSON.stringify(require.resolve('./getHotUpdateAPI')) + ');',
25
' return getHotUpdateAPI(React, ' + JSON.stringify(filename) + ', module.id);',
26
'})();',
27
- processedSource,
28
'if (module.hot) {',
29
' module.hot.accept(function (err) {',
30
' if (err) {',
@@ -35,6 +34,7 @@ module.exports = function (source) {
35
34
' var nextTick = require(' + JSON.stringify(require.resolve('next-tick')) + ');',
36
' nextTick(__hotUpdateAPI.updateMountedInstances);',
37
' });',
38
- '}'
+ '}',
+ processedSource
39
].join('\n');
40
};
0 commit comments