From 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期二, 21 四月 2026 11:46:41 +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