Skip to content

Commit 74e927f

Browse files
committed
fixed another bug in HMR
1 parent 8c4b8f2 commit 74e927f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/HotModuleReplacementPlugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ var hotInitCode = Template.getFunctionContent(function() {
192192
hotCurrentParent = moduleId;
193193
return $require$(request);
194194
};
195+
for(var name in $require$)
196+
fn[name] = $require$[name];
195197
fn.e = function(chunkId, callback) {
196198
if(hotStatus === "ready")
197199
hotSetStatus("prepare");
@@ -215,8 +217,6 @@ var hotInitCode = Template.getFunctionContent(function() {
215217
}
216218
});
217219
}
218-
for(var name in $require$)
219-
fn[name] = $require$[name];
220220
return fn;
221221
}
222222

0 commit comments

Comments
 (0)