From 0469abd4a9c9270a1fdc962969e36e63699af8b4 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 10 Dec 2017 21:51:33 +0100 Subject: upgrade dependencies --- .../lib/AsyncDependencyToInitialChunkWarning.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 node_modules/webpack/lib/AsyncDependencyToInitialChunkWarning.js (limited to 'node_modules/webpack/lib/AsyncDependencyToInitialChunkWarning.js') diff --git a/node_modules/webpack/lib/AsyncDependencyToInitialChunkWarning.js b/node_modules/webpack/lib/AsyncDependencyToInitialChunkWarning.js new file mode 100644 index 000000000..b917b4f60 --- /dev/null +++ b/node_modules/webpack/lib/AsyncDependencyToInitialChunkWarning.js @@ -0,0 +1,21 @@ +/* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Sean Larkin @thelarkinn +*/ +"use strict"; + +const WebpackError = require("./WebpackError"); + +module.exports = class AsyncDependencyToInitialChunkWarning extends WebpackError { + constructor(chunkName, module, loc) { + super(); + + this.name = "AsyncDependencyToInitialChunkWarning"; + this.message = `It's not allowed to load an initial chunk on demand. The chunk name "${chunkName}" is already used by an entrypoint.`; + this.module = module; + this.origin = module; + this.originLoc = loc; + + Error.captureStackTrace(this, this.constructor); + } +}; -- cgit v1.2.3