1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | "use strict";
|
7 |
|
8 | const WebpackError = require("./WebpackError");
|
9 | const makeSerializable = require("./util/makeSerializable");
|
10 |
|
11 |
|
12 |
|
13 | class CommentCompilationWarning extends WebpackError {
|
14 | |
15 |
|
16 |
|
17 |
|
18 |
|
19 | constructor(message, loc) {
|
20 | super(message);
|
21 |
|
22 | this.name = "CommentCompilationWarning";
|
23 |
|
24 | this.loc = loc;
|
25 |
|
26 | Error.captureStackTrace(this, this.constructor);
|
27 | }
|
28 | }
|
29 |
|
30 | makeSerializable(
|
31 | CommentCompilationWarning,
|
32 | "webpack/lib/CommentCompilationWarning"
|
33 | );
|
34 |
|
35 | module.exports = CommentCompilationWarning;
|