Skip to content

Commit 6c3e333

Browse files
committed
fixed webpack#317
1 parent f68c44f commit 6c3e333

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/JsonpMainTemplatePlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ JsonpMainTemplatePlugin.prototype.apply = function(mainTemplate) {
117117
.replace(Template.REGEXP_ID, "\" + chunkId + \"");
118118
var currentHotUpdateMainFilename = JSON.stringify(hotUpdateMainFilename)
119119
.replace(Template.REGEXP_HASH, "\" + " + this.renderCurrentHashCode(hash) + " + \"");
120-
return "this[" + JSON.stringify(hotUpdateFunction) + "] = " + Template.getFunctionContent(function() {
120+
return source + "\nthis[" + JSON.stringify(hotUpdateFunction) + "] = " + Template.getFunctionContent(function() {
121121
function webpackHotUpdateCallback(chunkId, moreModules) {
122122
hotAddUpdateChunk(chunkId, moreModules);
123123
}

0 commit comments

Comments
 (0)