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/MemoryWithGcCachePlugin.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/node_modules/webpack/lib/cache/MemoryWithGcCachePlugin.js b/node_modules/webpack/lib/cache/MemoryWithGcCachePlugin.js
index 3093789..33c9661 100644
--- a/node_modules/webpack/lib/cache/MemoryWithGcCachePlugin.js
+++ b/node_modules/webpack/lib/cache/MemoryWithGcCachePlugin.js
@@ -12,6 +12,7 @@
/** @typedef {import("../Compiler")} Compiler */
/**
+ * Defines the memory with gc cache plugin options type used by this module.
* @typedef {object} MemoryWithGcCachePluginOptions
* @property {number} maxGenerations max generations
*/
@@ -20,6 +21,7 @@
class MemoryWithGcCachePlugin {
/**
+ * Creates an instance of MemoryWithGcCachePlugin.
* @param {MemoryWithGcCachePluginOptions} options options
*/
constructor({ maxGenerations }) {
@@ -27,7 +29,7 @@
}
/**
- * Apply the plugin
+ * Applies the plugin by registering its hooks on the compiler.
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
@@ -43,6 +45,7 @@
compiler.hooks.afterDone.tap(PLUGIN_NAME, () => {
generation++;
let clearedEntries = 0;
+ /** @type {undefined | string} */
let lastClearedIdentifier;
// Avoid coverage problems due indirect changes
/* istanbul ignore next */
--
Gitblit v1.9.3