Skip to content

Commit 686978b

Browse files
committed
moved hash update in runtime
1 parent 4c7766a commit 686978b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎lib/HotModuleReplacementPlugin.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,9 @@ var hotInitCode = function() {
498498
}
499499

500500
hotSetStatus("apply");
501+
502+
hotCurrentHash = hotUpdateNewHash;
503+
501504
// insert new code
502505
for(var moduleId in hotUpdate) {
503506
var fn = hotUpdate[moduleId];
@@ -539,8 +542,6 @@ var hotInitCode = function() {
539542
$require$(moduleId);
540543
}
541544

542-
hotCurrentHash = hotUpdateNewHash;
543-
544545
hotSetStatus("idle");
545546
callback(null, outdatedModules);
546547
}

0 commit comments

Comments
 (0)