From 9bce51f651aad297ef9eb6df832bfdaf1de05d84 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 22 四月 2026 14:27:54 +0800
Subject: [PATCH] 青岛推送
---
node_modules/webpack/lib/ModuleError.js | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/node_modules/webpack/lib/ModuleError.js b/node_modules/webpack/lib/ModuleError.js
index f8227a8..c812bd1 100644
--- a/node_modules/webpack/lib/ModuleError.js
+++ b/node_modules/webpack/lib/ModuleError.js
@@ -15,7 +15,7 @@
class ModuleError extends WebpackError {
/**
* @param {Error} err error thrown
- * @param {{from?: string|null}} info additional info
+ * @param {{ from?: string | null }} info additional info
*/
constructor(err, { from = null } = {}) {
let message = "Module Error";
@@ -30,8 +30,11 @@
super(message);
+ /** @type {string} */
this.name = "ModuleError";
+ /** @type {Error} */
this.error = err;
+ /** @type {string | undefined} */
this.details =
err && typeof err === "object" && err.stack
? cleanUp(err.stack, this.message)
@@ -39,6 +42,7 @@
}
/**
+ * Serializes this instance into the provided serializer context.
* @param {ObjectSerializerContext} context context
*/
serialize(context) {
@@ -50,6 +54,7 @@
}
/**
+ * Restores this instance from the provided deserializer context.
* @param {ObjectDeserializerContext} context context
*/
deserialize(context) {
--
Gitblit v1.9.3