WXL
3 天以前 2cc85c64f1c64a2dbaeae276a3e2ca8420de76b7
node_modules/webpack/lib/WebpackError.js
@@ -21,7 +21,6 @@
    * @param {{ cause?: unknown }} options error options
    */
   constructor(message, options = {}) {
      // @ts-expect-error ES2018 doesn't `Error.cause`, but it can be used by developers
      super(message, options);
      /** @type {string=} */
@@ -38,6 +37,10 @@
      this.file = undefined;
   }
   /**
    * Returns inspect message.
    * @returns {string} inspect message
    */
   [inspect]() {
      return (
         this.stack +
@@ -47,6 +50,7 @@
   }
   /**
    * Serializes this instance into the provided serializer context.
    * @param {ObjectSerializerContext} context context
    */
   serialize({ write }) {
@@ -60,6 +64,7 @@
   }
   /**
    * Restores this instance from the provided deserializer context.
    * @param {ObjectDeserializerContext} context context
    */
   deserialize({ read }) {
@@ -75,4 +80,5 @@
makeSerializable(WebpackError, "webpack/lib/WebpackError");
/** @type {typeof WebpackError} */
module.exports = WebpackError;