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/AutomaticPrefetchPlugin.js |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/node_modules/webpack/lib/AutomaticPrefetchPlugin.js b/node_modules/webpack/lib/AutomaticPrefetchPlugin.js
index 1295f82..3f42ee0 100644
--- a/node_modules/webpack/lib/AutomaticPrefetchPlugin.js
+++ b/node_modules/webpack/lib/AutomaticPrefetchPlugin.js
@@ -13,9 +13,14 @@
 
 const PLUGIN_NAME = "AutomaticPrefetchPlugin";
 
+/**
+ * Records modules from one compilation and adds them back as prefetch
+ * dependencies in the next compilation.
+ */
 class AutomaticPrefetchPlugin {
 	/**
-	 * Apply the plugin
+	 * Registers hooks that remember previously built normal modules and enqueue
+	 * them as `PrefetchDependency` requests during the next make phase.
 	 * @param {Compiler} compiler the compiler instance
 	 * @returns {void}
 	 */
@@ -29,7 +34,7 @@
 				);
 			}
 		);
-		/** @type {{context: string | null, request: string}[] | null} */
+		/** @type {{ context: string | null, request: string }[] | null} */
 		let lastModules = null;
 		compiler.hooks.afterCompile.tap(PLUGIN_NAME, (compilation) => {
 			lastModules = [];

--
Gitblit v1.9.3