1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | "use strict";
|
7 |
|
8 | const WebpackError = require("./WebpackError");
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | class AsyncDependencyToInitialChunkError extends WebpackError {
|
14 | |
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 | constructor(chunkName, module, loc) {
|
21 | super(
|
22 | `It's not allowed to load an initial chunk on demand. The chunk name "${chunkName}" is already used by an entrypoint.`
|
23 | );
|
24 |
|
25 | this.name = "AsyncDependencyToInitialChunkError";
|
26 | this.module = module;
|
27 | this.loc = loc;
|
28 |
|
29 | Error.captureStackTrace(this, this.constructor);
|
30 | }
|
31 | }
|
32 |
|
33 | module.exports = AsyncDependencyToInitialChunkError;
|