We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f68c44f commit 6c3e333Copy full SHA for 6c3e333
1 file changed
lib/JsonpMainTemplatePlugin.js
@@ -117,7 +117,7 @@ JsonpMainTemplatePlugin.prototype.apply = function(mainTemplate) {
117
.replace(Template.REGEXP_ID, "\" + chunkId + \"");
118
var currentHotUpdateMainFilename = JSON.stringify(hotUpdateMainFilename)
119
.replace(Template.REGEXP_HASH, "\" + " + this.renderCurrentHashCode(hash) + " + \"");
120
- return "this[" + JSON.stringify(hotUpdateFunction) + "] = " + Template.getFunctionContent(function() {
+ return source + "\nthis[" + JSON.stringify(hotUpdateFunction) + "] = " + Template.getFunctionContent(function() {
121
function webpackHotUpdateCallback(chunkId, moreModules) {
122
hotAddUpdateChunk(chunkId, moreModules);
123
}
0 commit comments