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/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