diff options
Diffstat (limited to 'node_modules/webpack/lib/webworker/WebWorkerTemplatePlugin.js')
| -rw-r--r-- | node_modules/webpack/lib/webworker/WebWorkerTemplatePlugin.js | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/node_modules/webpack/lib/webworker/WebWorkerTemplatePlugin.js b/node_modules/webpack/lib/webworker/WebWorkerTemplatePlugin.js deleted file mode 100644 index 382c8124..00000000 --- a/node_modules/webpack/lib/webworker/WebWorkerTemplatePlugin.js +++ /dev/null @@ -1,25 +0,0 @@ -/* - MIT License http://www.opensource.org/licenses/mit-license.php - Author Tobias Koppers @sokra -*/ - -"use strict"; - -const ArrayPushCallbackChunkFormatPlugin = require("../javascript/ArrayPushCallbackChunkFormatPlugin"); -const EnableChunkLoadingPlugin = require("../javascript/EnableChunkLoadingPlugin"); - -/** @typedef {import("../Compiler")} Compiler */ - -class WebWorkerTemplatePlugin { - /** - * Apply the plugin - * @param {Compiler} compiler the compiler instance - * @returns {void} - */ - apply(compiler) { - compiler.options.output.chunkLoading = "import-scripts"; - new ArrayPushCallbackChunkFormatPlugin().apply(compiler); - new EnableChunkLoadingPlugin("import-scripts").apply(compiler); - } -} -module.exports = WebWorkerTemplatePlugin; |
