WXL
4 天以前 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1
node_modules/webpack/lib/ModuleError.js
@@ -15,7 +15,7 @@
class ModuleError extends WebpackError {
   /**
    * @param {Error} err error thrown
    * @param {{from?: string|null}} info additional info
    * @param {{ from?: string | null }} info additional info
    */
   constructor(err, { from = null } = {}) {
      let message = "Module Error";
@@ -30,8 +30,11 @@
      super(message);
      /** @type {string} */
      this.name = "ModuleError";
      /** @type {Error} */
      this.error = err;
      /** @type {string | undefined} */
      this.details =
         err && typeof err === "object" && err.stack
            ? cleanUp(err.stack, this.message)
@@ -39,6 +42,7 @@
   }
   /**
    * Serializes this instance into the provided serializer context.
    * @param {ObjectSerializerContext} context context
    */
   serialize(context) {
@@ -50,6 +54,7 @@
   }
   /**
    * Restores this instance from the provided deserializer context.
    * @param {ObjectDeserializerContext} context context
    */
   deserialize(context) {