From 4d9da000fbe74d344e0e4580b138e79d4ad98ede Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期一, 01 六月 2026 11:07:14 +0800
Subject: [PATCH] 维护
---
node_modules/webpack/lib/ChunkRenderError.js | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/node_modules/webpack/lib/ChunkRenderError.js b/node_modules/webpack/lib/ChunkRenderError.js
index fce913f..6d42589 100644
--- a/node_modules/webpack/lib/ChunkRenderError.js
+++ b/node_modules/webpack/lib/ChunkRenderError.js
@@ -19,13 +19,20 @@
constructor(chunk, file, error) {
super();
+ /** @type {string} */
this.name = "ChunkRenderError";
- this.error = error;
- this.message = error.message;
- this.details = error.stack;
- this.file = file;
+ /** @type {Chunk} */
this.chunk = chunk;
+ /** @type {string} */
+ this.file = file;
+ /** @type {Error} */
+ this.error = error;
+ /** @type {string} */
+ this.message = error.message;
+ /** @type {string} */
+ this.details = error.stack;
}
}
+/** @type {typeof ChunkRenderError} */
module.exports = ChunkRenderError;
--
Gitblit v1.9.3