From 2cc85c64f1c64a2dbaeae276a3e2ca8420de76b7 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 22 四月 2026 18:09:58 +0800
Subject: [PATCH] 上报转运调试
---
node_modules/webpack/lib/CaseSensitiveModulesWarning.js | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/node_modules/webpack/lib/CaseSensitiveModulesWarning.js b/node_modules/webpack/lib/CaseSensitiveModulesWarning.js
index 0ee17aa..edef2bd 100644
--- a/node_modules/webpack/lib/CaseSensitiveModulesWarning.js
+++ b/node_modules/webpack/lib/CaseSensitiveModulesWarning.js
@@ -11,6 +11,7 @@
/** @typedef {import("./ModuleGraph")} ModuleGraph */
/**
+ * Sorts the conflicting modules by identifier to keep warning output stable.
* @param {Module[]} modules the modules to be sorted
* @returns {Module[]} sorted version of original modules
*/
@@ -27,6 +28,8 @@
});
/**
+ * Formats the conflicting modules and one representative incoming reason for
+ * each module into the warning body.
* @param {Module[]} modules each module from throw
* @param {ModuleGraph} moduleGraph the module graph
* @returns {string} each message from provided modules
@@ -49,9 +52,14 @@
})
.join("\n");
+/**
+ * Warning emitted when webpack finds modules whose identifiers differ only by
+ * letter casing, which can behave inconsistently across filesystems.
+ */
class CaseSensitiveModulesWarning extends WebpackError {
/**
- * Creates an instance of CaseSensitiveModulesWarning.
+ * Builds a warning message that lists the case-conflicting modules and
+ * representative importers that caused them to be included.
* @param {Iterable<Module>} modules modules that were detected
* @param {ModuleGraph} moduleGraph the module graph
*/
@@ -63,6 +71,7 @@
Use equal casing. Compare these module identifiers:
${modulesList}`);
+ /** @type {string} */
this.name = "CaseSensitiveModulesWarning";
this.module = sortedModules[0];
}
--
Gitblit v1.9.3