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/esm/ModuleChunkLoadingPlugin.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/node_modules/webpack/lib/esm/ModuleChunkLoadingPlugin.js b/node_modules/webpack/lib/esm/ModuleChunkLoadingPlugin.js
index eadc0cb..c3a6772 100644
--- a/node_modules/webpack/lib/esm/ModuleChunkLoadingPlugin.js
+++ b/node_modules/webpack/lib/esm/ModuleChunkLoadingPlugin.js
@@ -17,7 +17,7 @@
class ModuleChunkLoadingPlugin {
/**
- * Apply the plugin
+ * Applies the plugin by registering its hooks on the compiler.
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
@@ -25,6 +25,7 @@
compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation) => {
const globalChunkLoading = compilation.outputOptions.chunkLoading;
/**
+ * Checks whether this module chunk loading plugin is enabled for chunk.
* @param {Chunk} chunk chunk to check
* @returns {boolean} true, when the plugin is enabled for the chunk
*/
@@ -36,8 +37,10 @@
: globalChunkLoading;
return chunkLoading === "import";
};
+ /** @type {WeakSet<Chunk>} */
const onceForChunkSet = new WeakSet();
/**
+ * Handles the hook callback for this code path.
* @param {Chunk} chunk chunk to check
* @param {RuntimeRequirements} set runtime requirements
*/
--
Gitblit v1.9.3