/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
lib/errors/NodeStuffInWebError.js
37 строк
960 B
Xiao
fix: sync internalSerializables via generator and fill missing entries. (#21448)
22 июл 2026, 02:59
Не верифицирован
22 июл 2026, 02:59
2c57222
Код
Авторство
О чём код?
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; /** @typedef {import("../Dependency").DependencyLocation} DependencyLocation */ const makeSerializable = require("../util/makeSerializable"); const WebpackError = require("./WebpackError"); class NodeStuffInWebError extends WebpackError { /** * Creates an instance of NodeStuffInWebError. * @param {DependencyLocation} loc loc * @param {string} expression expression * @param {string} description description */ constructor(loc, expression, description) { super( `${JSON.stringify( expression )} has been used, it will be undefined in next major version. ${description}` ); /** @type {string} */ this.name = "NodeStuffInWebError"; /** @type {DependencyLocation} */ this.loc = loc; } } makeSerializable(NodeStuffInWebError, "webpack/lib/errors/NodeStuffInWebError"); module.exports = NodeStuffInWebError;