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/container/HoistContainerReferencesPlugin.js |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/node_modules/webpack/lib/container/HoistContainerReferencesPlugin.js b/node_modules/webpack/lib/container/HoistContainerReferencesPlugin.js
index 238bb32..4452f86 100644
--- a/node_modules/webpack/lib/container/HoistContainerReferencesPlugin.js
+++ b/node_modules/webpack/lib/container/HoistContainerReferencesPlugin.js
@@ -34,7 +34,9 @@
 		compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation) => {
 			const hooks =
 				getModuleFederationPlugin().getCompilationHooks(compilation);
+			/** @type {Set<Dependency>} */
 			const depsToTrace = new Set();
+			/** @type {Set<Dependency>} */
 			const entryExternalsToHoist = new Set();
 			hooks.addContainerEntryDependency.tap(PLUGIN_NAME, (dep) => {
 				depsToTrace.add(dep);
@@ -89,6 +91,7 @@
 			);
 
 			const containerRuntimes = chunkGraph.getModuleRuntimes(entryModule);
+			/** @type {Set<string>} */
 			const runtimes = new Set();
 
 			for (const runtimeSpec of containerRuntimes) {
@@ -136,6 +139,7 @@
 
 			const containerRuntimes =
 				chunkGraph.getModuleRuntimes(containerEntryModule);
+			/** @type {Set<string>} */
 			const runtimes = new Set();
 
 			for (const runtimeSpec of containerRuntimes) {
@@ -198,7 +202,9 @@
  */
 function getAllReferencedModules(compilation, module, type, includeInitial) {
 	const collectedModules = new Set(includeInitial ? [module] : []);
+	/** @type {WeakSet<Module>} */
 	const visitedModules = new WeakSet([module]);
+	/** @type {Module[]} */
 	const stack = [module];
 
 	while (stack.length > 0) {

--
Gitblit v1.9.3