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/WebpackError.js |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/node_modules/webpack/lib/WebpackError.js b/node_modules/webpack/lib/WebpackError.js
index 02a7e4a..7eb7351 100644
--- a/node_modules/webpack/lib/WebpackError.js
+++ b/node_modules/webpack/lib/WebpackError.js
@@ -21,7 +21,6 @@
 	 * @param {{ cause?: unknown }} options error options
 	 */
 	constructor(message, options = {}) {
-		// @ts-expect-error ES2018 doesn't `Error.cause`, but it can be used by developers
 		super(message, options);
 
 		/** @type {string=} */
@@ -38,6 +37,10 @@
 		this.file = undefined;
 	}
 
+	/**
+	 * Returns inspect message.
+	 * @returns {string} inspect message
+	 */
 	[inspect]() {
 		return (
 			this.stack +
@@ -47,6 +50,7 @@
 	}
 
 	/**
+	 * Serializes this instance into the provided serializer context.
 	 * @param {ObjectSerializerContext} context context
 	 */
 	serialize({ write }) {
@@ -60,6 +64,7 @@
 	}
 
 	/**
+	 * Restores this instance from the provided deserializer context.
 	 * @param {ObjectDeserializerContext} context context
 	 */
 	deserialize({ read }) {
@@ -75,4 +80,5 @@
 
 makeSerializable(WebpackError, "webpack/lib/WebpackError");
 
+/** @type {typeof WebpackError} */
 module.exports = WebpackError;

--
Gitblit v1.9.3