1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | "use strict";
|
7 |
|
8 | const WebpackError = require("./WebpackError");
|
9 | const makeSerializable = require("./util/makeSerializable");
|
10 |
|
11 | class UnhandledSchemeError extends WebpackError {
|
12 | |
13 |
|
14 |
|
15 |
|
16 | constructor(scheme, resource) {
|
17 | super(
|
18 | `Reading from "${resource}" is not handled by plugins (Unhandled scheme).` +
|
19 | '\nWebpack supports "data:" and "file:" URIs by default.' +
|
20 | `\nYou may need an additional plugin to handle "${scheme}:" URIs.`
|
21 | );
|
22 | this.file = resource;
|
23 | this.name = "UnhandledSchemeError";
|
24 | }
|
25 | }
|
26 |
|
27 | makeSerializable(
|
28 | UnhandledSchemeError,
|
29 | "webpack/lib/UnhandledSchemeError",
|
30 | "UnhandledSchemeError"
|
31 | );
|
32 |
|
33 | module.exports = UnhandledSchemeError;
|