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

diff --git a/node_modules/webpack/lib/util/concatenate.js b/node_modules/webpack/lib/util/concatenate.js
index 5f2f5ab..c73ee40 100644
--- a/node_modules/webpack/lib/util/concatenate.js
+++ b/node_modules/webpack/lib/util/concatenate.js
@@ -18,6 +18,7 @@
 const NAMESPACE_OBJECT_EXPORT = "__WEBPACK_NAMESPACE_OBJECT__";
 
 /**
+ * Gets all references.
  * @param {Variable} variable variable
  * @returns {Reference[]} references
  */
@@ -37,6 +38,7 @@
 };
 
 /**
+ * Returns result.
  * @param {Node | Node[]} ast ast
  * @param {Node} node node
  * @returns {undefined | Node[]} result
@@ -49,6 +51,7 @@
 	const nr = /** @type {Range} */ (node.range);
 
 	/**
+	 * Returns result.
 	 * @param {Node} n node
 	 * @returns {Node[] | undefined} result
 	 */
@@ -92,6 +95,7 @@
 };
 
 /**
+ * Returns found new name.
  * @param {string} oldName old name
  * @param {UsedNames} usedNamed1 used named 1
  * @param {UsedNames} usedNamed2 used named 2
@@ -110,7 +114,7 @@
 
 	// Remove uncool stuff
 	extraInfo = extraInfo.replace(
-		/\.+\/|(\/index)?\.([a-zA-Z0-9]{1,4})($|\s|\?)|\s*\+\s*\d+\s*modules/g,
+		/\.+\/|(?:\/index)?\.[a-zA-Z0-9]{1,4}(?:$|\s|\?)|\s*\+\s*\d+\s*modules/g,
 		""
 	);
 
@@ -142,6 +146,7 @@
 /** @typedef {Set<Scope>} ScopeSet */
 
 /**
+ * Adds scope symbols.
  * @param {Scope | null} s scope
  * @param {UsedNames} nameSet name set
  * @param {ScopeSet} scopeSet1 scope set 1
@@ -199,9 +204,11 @@
 );
 
 /** @typedef {{ usedNames: UsedNames, alreadyCheckedScopes: ScopeSet }} ScopeInfo */
+/** @typedef {Map<string, ScopeInfo>} UsedNamesInScopeInfo */
 
 /**
- * @param {Map<string, ScopeInfo>} usedNamesInScopeInfo used names in scope info
+ * Gets used names in scope info.
+ * @param {UsedNamesInScopeInfo} usedNamesInScopeInfo used names in scope info
  * @param {string} module module identifier
  * @param {string} id export id
  * @returns {ScopeInfo} info

--
Gitblit v1.9.3