WXL
3 天以前 9bce51f651aad297ef9eb6df832bfdaf1de05d84
node_modules/webpack/lib/util/registerExternalSerializer.js
@@ -33,6 +33,7 @@
   "webpack-sources/CachedSource",
   new (class CachedSourceSerializer {
      /**
       * Serializes this instance into the provided serializer context.
       * @param {CachedSource} source the cached source to be serialized
       * @param {ObjectSerializerContext} context context
       * @returns {void}
@@ -47,6 +48,7 @@
      }
      /**
       * Restores this instance from the provided deserializer context.
       * @param {ObjectDeserializerContext} context context
       * @returns {CachedSource} cached source
       */
@@ -64,6 +66,7 @@
   "webpack-sources/RawSource",
   new (class RawSourceSerializer {
      /**
       * Serializes this instance into the provided serializer context.
       * @param {RawSource} source the raw source to be serialized
       * @param {ObjectSerializerContext} context context
       * @returns {void}
@@ -74,6 +77,7 @@
      }
      /**
       * Restores this instance from the provided deserializer context.
       * @param {ObjectDeserializerContext} context context
       * @returns {RawSource} raw source
       */
@@ -91,6 +95,7 @@
   "webpack-sources/ConcatSource",
   new (class ConcatSourceSerializer {
      /**
       * Serializes this instance into the provided serializer context.
       * @param {ConcatSource} source the concat source to be serialized
       * @param {ObjectSerializerContext} context context
       * @returns {void}
@@ -100,6 +105,7 @@
      }
      /**
       * Restores this instance from the provided deserializer context.
       * @param {ObjectDeserializerContext} context context
       * @returns {ConcatSource} concat source
       */
@@ -117,6 +123,7 @@
   "webpack-sources/PrefixSource",
   new (class PrefixSourceSerializer {
      /**
       * Serializes this instance into the provided serializer context.
       * @param {PrefixSource} source the prefix source to be serialized
       * @param {ObjectSerializerContext} context context
       * @returns {void}
@@ -127,6 +134,7 @@
      }
      /**
       * Restores this instance from the provided deserializer context.
       * @param {ObjectDeserializerContext} context context
       * @returns {PrefixSource} prefix source
       */
@@ -142,6 +150,7 @@
   "webpack-sources/ReplaceSource",
   new (class ReplaceSourceSerializer {
      /**
       * Serializes this instance into the provided serializer context.
       * @param {ReplaceSource} source the replace source to be serialized
       * @param {ObjectSerializerContext} context context
       * @returns {void}
@@ -162,12 +171,14 @@
      }
      /**
       * Restores this instance from the provided deserializer context.
       * @param {ObjectDeserializerContext} context context
       * @returns {ReplaceSource} replace source
       */
      deserialize({ read }) {
         const source = new ReplaceSource(read(), read());
         const len = read();
         /** @type {number[]} */
         const startEndBuffer = [];
         for (let i = 0; i < len; i++) {
            startEndBuffer.push(read(), read());
@@ -192,6 +203,7 @@
   "webpack-sources/OriginalSource",
   new (class OriginalSourceSerializer {
      /**
       * Serializes this instance into the provided serializer context.
       * @param {OriginalSource} source the original source to be serialized
       * @param {ObjectSerializerContext} context context
       * @returns {void}
@@ -202,6 +214,7 @@
      }
      /**
       * Restores this instance from the provided deserializer context.
       * @param {ObjectDeserializerContext} context context
       * @returns {OriginalSource} original source
       */
@@ -219,6 +232,7 @@
   "acorn/SourceLocation",
   new (class SourceLocationSerializer {
      /**
       * Serializes this instance into the provided serializer context.
       * @param {SourceLocation} loc the location to be serialized
       * @param {ObjectSerializerContext} context context
       * @returns {void}
@@ -231,6 +245,7 @@
      }
      /**
       * Restores this instance from the provided deserializer context.
       * @param {ObjectDeserializerContext} context context
       * @returns {RealDependencyLocation} location
       */
@@ -255,6 +270,7 @@
   "acorn/Position",
   new (class PositionSerializer {
      /**
       * Serializes this instance into the provided serializer context.
       * @param {Position} pos the position to be serialized
       * @param {ObjectSerializerContext} context context
       * @returns {void}
@@ -265,6 +281,7 @@
      }
      /**
       * Restores this instance from the provided deserializer context.
       * @param {ObjectDeserializerContext} context context
       * @returns {SourcePosition} position
       */
@@ -283,6 +300,7 @@
   "webpack-sources/SourceMapSource",
   new (class SourceMapSourceSerializer {
      /**
       * Serializes this instance into the provided serializer context.
       * @param {SourceMapSource} source the source map source to be serialized
       * @param {ObjectSerializerContext} context context
       * @returns {void}
@@ -292,6 +310,7 @@
      }
      /**
       * Restores this instance from the provided deserializer context.
       * @param {ObjectDeserializerContext} context context
       * @returns {SourceMapSource} source source map source
       */
@@ -308,6 +327,7 @@
   "schema-utils/ValidationError",
   new (class ValidationErrorSerializer {
      /**
       * Serializes this instance into the provided serializer context.
       * @param {ValidationError} error the source map source to be serialized
       * @param {ObjectSerializerContext} context context
       * @returns {void}
@@ -323,6 +343,7 @@
      }
      /**
       * Restores this instance from the provided deserializer context.
       * @param {ObjectDeserializerContext} context context
       * @returns {ValidationError} error
       */