diff --git a/JsonpMainTemplatePlugin.js b/JsonpMainTemplatePlugin.js index 8f74a42..1c96f61 100644 --- a/JsonpMainTemplatePlugin.js +++ b/JsonpMainTemplatePlugin.js @@ -126,7 +126,6 @@ class JsonpMainTemplatePlugin { source, "", "// install a JSONP callback for chunk loading", - `var parentJsonpFunction = global[${JSON.stringify(jsonpFunction)}];`, `global[${JSON.stringify(jsonpFunction)}] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {`, this.indent([ "// add \"moreModules\" to the modules object,", @@ -148,7 +147,6 @@ class JsonpMainTemplatePlugin { "}" ]), "}", - "if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);", "while(resolves.length) {", this.indent("resolves.shift()();"), "}", @@ -206,4 +204,4 @@ this[${JSON.stringify(hotUpdateFunction)}] = ${runtimeSource}`; }); } } -module.exports = JsonpMainTemplatePlugin; \ No newline at end of file +module.exports = JsonpMainTemplatePlugin;