WXL
4 天以前 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1
node_modules/webpack/lib/ModuleWarning.js
@@ -14,8 +14,9 @@
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";
@@ -30,6 +31,7 @@
      super(message);
      /** @type {string} */
      this.name = "ModuleWarning";
      this.warning = warning;
      this.details =
@@ -39,6 +41,7 @@
   }
   /**
    * Serializes this instance into the provided serializer context.
    * @param {ObjectSerializerContext} context context
    */
   serialize(context) {
@@ -50,6 +53,7 @@
   }
   /**
    * Restores this instance from the provided deserializer context.
    * @param {ObjectDeserializerContext} context context
    */
   deserialize(context) {
@@ -63,4 +67,5 @@
makeSerializable(ModuleWarning, "webpack/lib/ModuleWarning");
/** @type {typeof ModuleWarning} */
module.exports = ModuleWarning;