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 UnsupportedFeatureWarning extends WebpackError {
|
14 | |
15 |
|
16 |
|
17 |
|
18 | constructor(message, loc) {
|
19 | super(message);
|
20 |
|
21 | this.name = "UnsupportedFeatureWarning";
|
22 | this.loc = loc;
|
23 | this.hideStack = true;
|
24 |
|
25 | Error.captureStackTrace(this, this.constructor);
|
26 | }
|
27 | }
|
28 |
|
29 | makeSerializable(
|
30 | UnsupportedFeatureWarning,
|
31 | "webpack/lib/UnsupportedFeatureWarning"
|
32 | );
|
33 |
|
34 | module.exports = UnsupportedFeatureWarning;
|