Last change
on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
780 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | /*
|
---|
| 2 | MIT License http://www.opensource.org/licenses/mit-license.php
|
---|
| 3 | Author Tobias Koppers @sokra
|
---|
| 4 | */
|
---|
| 5 |
|
---|
| 6 | "use strict";
|
---|
| 7 |
|
---|
| 8 | const WebpackError = require("./WebpackError");
|
---|
| 9 | const makeSerializable = require("./util/makeSerializable");
|
---|
| 10 |
|
---|
| 11 | /** @typedef {import("./Dependency").DependencyLocation} DependencyLocation */
|
---|
| 12 |
|
---|
| 13 | class UnsupportedFeatureWarning extends WebpackError {
|
---|
| 14 | /**
|
---|
| 15 | * @param {string} message description of warning
|
---|
| 16 | * @param {DependencyLocation} loc location start and end positions of the module
|
---|
| 17 | */
|
---|
| 18 | constructor(message, loc) {
|
---|
| 19 | super(message);
|
---|
| 20 |
|
---|
| 21 | this.name = "UnsupportedFeatureWarning";
|
---|
| 22 | this.loc = loc;
|
---|
| 23 | this.hideStack = true;
|
---|
| 24 | }
|
---|
| 25 | }
|
---|
| 26 |
|
---|
| 27 | makeSerializable(
|
---|
| 28 | UnsupportedFeatureWarning,
|
---|
| 29 | "webpack/lib/UnsupportedFeatureWarning"
|
---|
| 30 | );
|
---|
| 31 |
|
---|
| 32 | module.exports = UnsupportedFeatureWarning;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.