From 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期二, 21 四月 2026 11:46:41 +0800
Subject: [PATCH] 推送

---
 node_modules/webpack/lib/util/registerExternalSerializer.js |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/node_modules/webpack/lib/util/registerExternalSerializer.js b/node_modules/webpack/lib/util/registerExternalSerializer.js
index 7b7d747..3ccdf56 100644
--- a/node_modules/webpack/lib/util/registerExternalSerializer.js
+++ b/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
 		 */

--
Gitblit v1.9.3