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/util/source.js | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/node_modules/webpack/lib/util/source.js b/node_modules/webpack/lib/util/source.js
index 065c7a6..d78d47b 100644
--- a/node_modules/webpack/lib/util/source.js
+++ b/node_modules/webpack/lib/util/source.js
@@ -11,15 +11,16 @@
const equalityCache = new WeakMap();
/**
+ * Checks whether source equal true, when both sources are equal.
* @param {Source} a a source
* @param {Source} b another source
* @returns {boolean} true, when both sources are equal
*/
const _isSourceEqual = (a, b) => {
// prefer .buffer(), it's called anyway during emit
- /** @type {Buffer|string} */
+ /** @type {Buffer | string} */
let aSource = typeof a.buffer === "function" ? a.buffer() : a.source();
- /** @type {Buffer|string} */
+ /** @type {Buffer | string} */
let bSource = typeof b.buffer === "function" ? b.buffer() : b.source();
if (aSource === bSource) return true;
if (typeof aSource === "string" && typeof bSource === "string") return false;
@@ -29,6 +30,7 @@
};
/**
+ * Checks whether this object is source equal.
* @param {Source} a a source
* @param {Source} b another source
* @returns {boolean} true, when both sources are equal
--
Gitblit v1.9.3