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/webworker/ImportScriptsChunkLoadingPlugin.js |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/node_modules/webpack/lib/webworker/ImportScriptsChunkLoadingPlugin.js b/node_modules/webpack/lib/webworker/ImportScriptsChunkLoadingPlugin.js
index 7e0cdd3..686dd0b 100644
--- a/node_modules/webpack/lib/webworker/ImportScriptsChunkLoadingPlugin.js
+++ b/node_modules/webpack/lib/webworker/ImportScriptsChunkLoadingPlugin.js
@@ -15,9 +15,14 @@
 
 const PLUGIN_NAME = "ImportScriptsChunkLoadingPlugin";
 
+/**
+ * Enables worker-side chunk loading via `importScripts` and wires in the
+ * runtime helpers needed for startup, loading, and hot updates.
+ */
 class ImportScriptsChunkLoadingPlugin {
 	/**
-	 * Apply the plugin
+	 * Registers compilation hooks that attach the `importScripts` chunk-loading
+	 * runtime and its supporting globals to chunks using that backend.
 	 * @param {Compiler} compiler the compiler instance
 	 * @returns {void}
 	 */
@@ -29,6 +34,8 @@
 		compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation) => {
 			const globalChunkLoading = compilation.outputOptions.chunkLoading;
 			/**
+			 * Determines whether the chunk resolves additional chunks through the
+			 * worker-side `importScripts` backend.
 			 * @param {Chunk} chunk chunk
 			 * @returns {boolean} true, if wasm loading is enabled for the chunk
 			 */
@@ -40,8 +47,11 @@
 						: globalChunkLoading;
 				return chunkLoading === "import-scripts";
 			};
+			/** @type {WeakSet<Chunk>} */
 			const onceForChunkSet = new WeakSet();
 			/**
+			 * Adds the `importScripts` chunk-loading runtime module to a chunk once
+			 * and records the globals it depends on.
 			 * @param {Chunk} chunk chunk
 			 * @param {RuntimeRequirements} set runtime requirements
 			 */

--
Gitblit v1.9.3