From 9bce51f651aad297ef9eb6df832bfdaf1de05d84 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 22 四月 2026 14:27:54 +0800
Subject: [PATCH] 青岛推送
---
node_modules/webpack/lib/cache/ResolverCachePlugin.js | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/node_modules/webpack/lib/cache/ResolverCachePlugin.js b/node_modules/webpack/lib/cache/ResolverCachePlugin.js
index a09789e..6a0327b 100644
--- a/node_modules/webpack/lib/cache/ResolverCachePlugin.js
+++ b/node_modules/webpack/lib/cache/ResolverCachePlugin.js
@@ -22,6 +22,7 @@
/** @typedef {import("../serialization/ObjectMiddleware").ObjectSerializerContext} ObjectSerializerContext */
/**
+ * Defines the sync hook type used by this module.
* @template T
* @typedef {import("tapable").SyncHook<T>} SyncHook
*/
@@ -30,6 +31,7 @@
class CacheEntry {
/**
+ * Creates an instance of CacheEntry.
* @param {ResolveRequest} result result
* @param {Snapshot} snapshot snapshot
*/
@@ -39,6 +41,7 @@
}
/**
+ * Serializes this instance into the provided serializer context.
* @param {ObjectSerializerContext} context context
*/
serialize({ write }) {
@@ -47,6 +50,7 @@
}
/**
+ * Restores this instance from the provided deserializer context.
* @param {ObjectDeserializerContext} context context
*/
deserialize({ read }) {
@@ -58,6 +62,7 @@
makeSerializable(CacheEntry, "webpack/lib/cache/ResolverCachePlugin");
/**
+ * Adds the provided set to the cache entry.
* @template T
* @param {Set<T> | LazySet<T>} set set to add items to
* @param {Set<T> | LazySet<T> | Iterable<T>} otherSet set to add items from
@@ -74,6 +79,7 @@
};
/**
+ * Returns stringified version.
* @template {object} T
* @param {T} object an object
* @param {boolean} excludeContext if true, context is not included in string
@@ -98,7 +104,7 @@
class ResolverCachePlugin {
/**
- * Apply the plugin
+ * Applies the plugin by registering its hooks on the compiler.
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
@@ -135,6 +141,7 @@
/** @typedef {ResolveRequest & { _ResolverCachePluginCacheMiss: true }} ResolveRequestWithCacheMiss */
/**
+ * Processes the provided item cache.
* @param {ItemCacheFacade} itemCache cache
* @param {Resolver} resolver the resolver
* @param {ResolveContext} resolveContext context for resolving meta info
@@ -175,6 +182,7 @@
(yieldResult).push(obj);
}
/**
+ * Processes the provided key.
* @param {"fileDependencies" | "contextDependencies" | "missingDependencies"} key key
*/
const propagate = (key) => {
@@ -375,6 +383,7 @@
}
};
/**
+ * Process cache result.
* @param {(Error | null)=} err error if any
* @param {(CacheEntry | null)=} cacheEntry cache entry
* @returns {void}
--
Gitblit v1.9.3