Skip to content

Commit ea53b87

Browse files
committed
maybe fixed a little HMR issue
webpack/webpack-dev-server#206
1 parent df4e2e4 commit ea53b87

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎lib/HotModuleReplacement.runtime.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@ module.exports = function() {
249249
if(module.hot._selfDeclined) {
250250
return new Error("Aborted because of self decline: " + moduleId);
251251
}
252+
if(moduleId === 0) {
253+
return;
254+
}
252255
for(var i = 0; i < module.parents.length; i++) {
253256
var parentId = module.parents[i];
254257
var parent = installedModules[parentId];

0 commit comments

Comments
 (0)