UNPKG

780 BJavaScriptView Raw
1/*
2 MIT License http://www.opensource.org/licenses/mit-license.php
3 Author Tobias Koppers @sokra
4*/
5
6"use strict";
7
8const WebpackError = require("./WebpackError");
9const makeSerializable = require("./util/makeSerializable");
10
11/** @typedef {import("./Dependency").DependencyLocation} DependencyLocation */
12
13class 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
27makeSerializable(
28 UnsupportedFeatureWarning,
29 "webpack/lib/UnsupportedFeatureWarning"
30);
31
32module.exports = UnsupportedFeatureWarning;