| | |
| | | |
| | | class ModuleWarning extends WebpackError { |
| | | /** |
| | | * Creates an instance of ModuleWarning. |
| | | * @param {Error} warning error thrown |
| | | * @param {{from?: string|null}} info additional info |
| | | * @param {{ from?: string | null }} info additional info |
| | | */ |
| | | constructor(warning, { from = null } = {}) { |
| | | let message = "Module Warning"; |
| | |
| | | |
| | | super(message); |
| | | |
| | | /** @type {string} */ |
| | | this.name = "ModuleWarning"; |
| | | this.warning = warning; |
| | | this.details = |
| | |
| | | } |
| | | |
| | | /** |
| | | * Serializes this instance into the provided serializer context. |
| | | * @param {ObjectSerializerContext} context context |
| | | */ |
| | | serialize(context) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * Restores this instance from the provided deserializer context. |
| | | * @param {ObjectDeserializerContext} context context |
| | | */ |
| | | deserialize(context) { |
| | |
| | | |
| | | makeSerializable(ModuleWarning, "webpack/lib/ModuleWarning"); |
| | | |
| | | /** @type {typeof ModuleWarning} */ |
| | | module.exports = ModuleWarning; |