aboutsummaryrefslogtreecommitdiff
path: root/node_modules/webpack/lib/AsyncDependencyToInitialChunkWarning.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-12-10 21:51:33 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-12-10 21:51:33 +0100
commit0469abd4a9c9270a1fdc962969e36e63699af8b4 (patch)
treef9864d4a4148621378958794cbbfdc2393733283 /node_modules/webpack/lib/AsyncDependencyToInitialChunkWarning.js
parent6947e79bbc258f7bc96af424ddb71a511f0c15a3 (diff)
upgrade dependencies
Diffstat (limited to 'node_modules/webpack/lib/AsyncDependencyToInitialChunkWarning.js')
-rw-r--r--node_modules/webpack/lib/AsyncDependencyToInitialChunkWarning.js21
1 files changed, 21 insertions, 0 deletions
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);
+ }
+};