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