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

diff --git a/node_modules/webpack/lib/dependencies/HarmonyExportSpecifierDependency.js b/node_modules/webpack/lib/dependencies/HarmonyExportSpecifierDependency.js
index b15d084..b3e5590 100644
--- a/node_modules/webpack/lib/dependencies/HarmonyExportSpecifierDependency.js
+++ b/node_modules/webpack/lib/dependencies/HarmonyExportSpecifierDependency.js
@@ -17,9 +17,12 @@
 /** @typedef {import("../ModuleGraphConnection").ConnectionState} ConnectionState */
 /** @typedef {import("../serialization/ObjectMiddleware").ObjectDeserializerContext} ObjectDeserializerContext */
 /** @typedef {import("../serialization/ObjectMiddleware").ObjectSerializerContext} ObjectSerializerContext */
+/** @typedef {import("./HarmonyExportInitFragment").UnusedExports} UnusedExports */
+/** @typedef {import("./HarmonyExportInitFragment").ExportMap} ExportMap */
 
 class HarmonyExportSpecifierDependency extends NullDependency {
 	/**
+	 * Creates an instance of HarmonyExportSpecifierDependency.
 	 * @param {string} id the id
 	 * @param {string} name the name
 	 */
@@ -48,6 +51,7 @@
 	}
 
 	/**
+	 * Gets module evaluation side effects state.
 	 * @param {ModuleGraph} moduleGraph the module graph
 	 * @returns {ConnectionState} how this dependency connects the module to referencing modules
 	 */
@@ -56,6 +60,7 @@
 	}
 
 	/**
+	 * Serializes this instance into the provided serializer context.
 	 * @param {ObjectSerializerContext} context context
 	 */
 	serialize(context) {
@@ -66,6 +71,7 @@
 	}
 
 	/**
+	 * Restores this instance from the provided deserializer context.
 	 * @param {ObjectDeserializerContext} context context
 	 */
 	deserialize(context) {
@@ -85,6 +91,7 @@
 	NullDependency.Template
 ) {
 	/**
+	 * Applies the plugin by registering its hooks on the compiler.
 	 * @param {Dependency} dependency the dependency for which the template should be applied
 	 * @param {ReplaceSource} source the current replace source which can be modified
 	 * @param {DependencyTemplateContext} templateContext the context object
@@ -104,6 +111,7 @@
 			.getExportsInfo(module)
 			.getUsedName(dep.name, runtime);
 		if (!used) {
+			/** @type {UnusedExports} */
 			const set = new Set();
 			set.add(dep.name || "namespace");
 			initFragments.push(
@@ -112,6 +120,7 @@
 			return;
 		}
 
+		/** @type {ExportMap} */
 		const map = new Map();
 		map.set(used, `/* binding */ ${dep.id}`);
 		initFragments.push(

--
Gitblit v1.9.3