/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
lib/errors/UnsupportedFeatureWarning.js
36 строк
928 B
Alexander Akait
refactor: move errors and warnings into own directory (#20867)
24 апр 2026, 17:18
Не верифицирован
24 апр 2026, 17:18
1d9d029
Код
Авторство
О чём код?
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const makeSerializable = require("../util/makeSerializable"); const WebpackError = require("./WebpackError"); /** @typedef {import("../Dependency").DependencyLocation} DependencyLocation */ class UnsupportedFeatureWarning extends WebpackError { /** * Creates an instance of UnsupportedFeatureWarning. * @param {string} message description of warning * @param {DependencyLocation} loc location start and end positions of the module */ constructor(message, loc) { super(message); /** @type {string} */ this.name = "UnsupportedFeatureWarning"; /** @type {DependencyLocation} */ this.loc = loc; /** @type {boolean} */ this.hideStack = true; } } makeSerializable( UnsupportedFeatureWarning, "webpack/lib/errors/UnsupportedFeatureWarning" ); module.exports = UnsupportedFeatureWarning;