From bbff7403fbf46f9ad92240ac213df8d30ef31b64 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Sep 2018 02:56:13 +0200 Subject: update packages --- .../webpack/lib/JsonpChunkTemplatePlugin.js | 31 ---------------------- 1 file changed, 31 deletions(-) delete mode 100644 node_modules/webpack/lib/JsonpChunkTemplatePlugin.js (limited to 'node_modules/webpack/lib/JsonpChunkTemplatePlugin.js') diff --git a/node_modules/webpack/lib/JsonpChunkTemplatePlugin.js b/node_modules/webpack/lib/JsonpChunkTemplatePlugin.js deleted file mode 100644 index ceeb95406..000000000 --- a/node_modules/webpack/lib/JsonpChunkTemplatePlugin.js +++ /dev/null @@ -1,31 +0,0 @@ -/* - MIT License http://www.opensource.org/licenses/mit-license.php - Author Tobias Koppers @sokra -*/ -"use strict"; - -const ConcatSource = require("webpack-sources").ConcatSource; - -class JsonpChunkTemplatePlugin { - apply(chunkTemplate) { - chunkTemplate.plugin("render", function(modules, chunk) { - const jsonpFunction = this.outputOptions.jsonpFunction; - const source = new ConcatSource(); - source.add(`${jsonpFunction}(${JSON.stringify(chunk.ids)},`); - source.add(modules); - const entries = [chunk.entryModule].filter(Boolean).map(m => m.id); - if(entries.length > 0) { - source.add(`,${JSON.stringify(entries)}`); - } - source.add(")"); - return source; - }); - chunkTemplate.plugin("hash", function(hash) { - hash.update("JsonpChunkTemplatePlugin"); - hash.update("3"); - hash.update(`${this.outputOptions.jsonpFunction}`); - hash.update(`${this.outputOptions.library}`); - }); - } -} -module.exports = JsonpChunkTemplatePlugin; -- cgit v1.2.3