Skip to content

Commit e8390f3

Browse files
committed
don't dispose unreferenced modules
fixes webpack#826
1 parent d80cf1c commit e8390f3

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎lib/HotModuleReplacementPlugin.js‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -556,10 +556,6 @@ var hotInitCode = Template.getFunctionContent(function() {
556556
var idx = child.parents.indexOf(moduleId);
557557
if(idx >= 0) {
558558
child.parents.splice(idx, 1);
559-
if(child.parents.length === 0 && child.hot && child.hot._disposeHandlers && child.hot._disposeHandlers.length > 0) {
560-
// Child has dispose handlers and no more references, dispose it too
561-
queue.push(child.id);
562-
}
563559
}
564560
}
565561
}

0 commit comments

Comments
 (0)