Skip to content

Commit afb400d

Browse files
committed
formating
1 parent f962eee commit afb400d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/JsonpMainTemplatePlugin.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class JsonpMainTemplatePlugin {
176176
hash: `" + ${this.renderCurrentHashCode(hash)} + "`,
177177
hashWithLength: length => `" + ${this.renderCurrentHashCode(hash, length)} + "`
178178
});
179-
const runtimeCode = Template.getFunctionContent(require("./JsonpMainTemplate.runtime.js"))
179+
const runtimeSource = Template.getFunctionContent(require("./JsonpMainTemplate.runtime.js"))
180180
.replace(/\/\/\$semicolon/g, ";")
181181
.replace(/\$require\$/g, this.requireFn)
182182
.replace(/\$hotMainFilename\$/g, currentHotUpdateMainFilename)
@@ -187,7 +187,7 @@ function hotDisposeChunk(chunkId) {
187187
delete installedChunks[chunkId];
188188
}
189189
var parentHotUpdateCallback = this[${JSON.stringify(hotUpdateFunction)}];
190-
this[${JSON.stringify(hotUpdateFunction)}] = ${runtimeCode}`;
190+
this[${JSON.stringify(hotUpdateFunction)}] = ${runtimeSource}`;
191191
});
192192
mainTemplate.plugin("hash", function(hash) {
193193
hash.update("jsonp");

0 commit comments

Comments
 (0)