aboutsummaryrefslogtreecommitdiff
path: root/node_modules/webpack/lib/AsyncDependencyToInitialChunkWarning.js
diff options
context:
space:
mode:
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);
+ }
+};