Skip to content

Commit 81c25a8

Browse files
committed
removed incorrect code
fixes webpack/example-app#5
1 parent 4c2f74b commit 81c25a8

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

lib/HotModuleReplacementPlugin.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,6 @@ HotModuleReplacementPlugin.prototype.apply = function(compiler) {
104104
this.assets[filename] = source;
105105
});
106106

107-
var mainTemplate = compilation.mainTemplate;
108-
compilation.mainTemplate = Object.create(mainTemplate);
109-
110107
compilation.mainTemplate.plugin("hash", function(hash) {
111108
hash.update("HotMainTemplateDecorator");
112109
});
@@ -512,4 +509,4 @@ var hotInitCode = Template.getFunctionContent(function() {
512509
hotSetStatus("idle");
513510
callback(null, outdatedModules);
514511
}
515-
});
512+
});

0 commit comments

Comments
 (0)