|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
928 bytes
|
| Line | |
|---|
| 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 makeSerializable = require("../util/makeSerializable");
|
|---|
| 9 | const WebpackError = require("./WebpackError");
|
|---|
| 10 |
|
|---|
| 11 | /** @typedef {import("../Dependency").DependencyLocation} DependencyLocation */
|
|---|
| 12 |
|
|---|
| 13 | class UnsupportedFeatureWarning extends WebpackError {
|
|---|
| 14 | /**
|
|---|
| 15 | * Creates an instance of UnsupportedFeatureWarning.
|
|---|
| 16 | * @param {string} message description of warning
|
|---|
| 17 | * @param {DependencyLocation} loc location start and end positions of the module
|
|---|
| 18 | */
|
|---|
| 19 | constructor(message, loc) {
|
|---|
| 20 | super(message);
|
|---|
| 21 |
|
|---|
| 22 | /** @type {string} */
|
|---|
| 23 | this.name = "UnsupportedFeatureWarning";
|
|---|
| 24 | /** @type {DependencyLocation} */
|
|---|
| 25 | this.loc = loc;
|
|---|
| 26 | /** @type {boolean} */
|
|---|
| 27 | this.hideStack = true;
|
|---|
| 28 | }
|
|---|
| 29 | }
|
|---|
| 30 |
|
|---|
| 31 | makeSerializable(
|
|---|
| 32 | UnsupportedFeatureWarning,
|
|---|
| 33 | "webpack/lib/errors/UnsupportedFeatureWarning"
|
|---|
| 34 | );
|
|---|
| 35 |
|
|---|
| 36 | module.exports = UnsupportedFeatureWarning;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.