WXL
4 天以前 2cc85c64f1c64a2dbaeae276a3e2ca8420de76b7
node_modules/webpack/lib/ModuleBuildError.js
@@ -16,11 +16,13 @@
class ModuleBuildError extends WebpackError {
   /**
    * Creates an instance of ModuleBuildError.
    * @param {string | ErrorWithHideStack} err error thrown
    * @param {{from?: string|null}} info additional info
    * @param {{ from?: string | null }} info additional info
    */
   constructor(err, { from = null } = {}) {
      let message = "Module build failed";
      /** @type {undefined | string} */
      let details;
      message += from ? ` (from ${from}):\n` : ": ";
@@ -48,12 +50,14 @@
      super(message);
      /** @type {string} */
      this.name = "ModuleBuildError";
      this.details = details;
      this.error = err;
   }
   /**
    * Serializes this instance into the provided serializer context.
    * @param {ObjectSerializerContext} context context
    */
   serialize(context) {
@@ -65,6 +69,7 @@
   }
   /**
    * Restores this instance from the provided deserializer context.
    * @param {ObjectDeserializerContext} context context
    */
   deserialize(context) {