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/LibManifestPlugin.js | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/node_modules/webpack/lib/LibManifestPlugin.js b/node_modules/webpack/lib/LibManifestPlugin.js
index eecf958..205bbb3 100644
--- a/node_modules/webpack/lib/LibManifestPlugin.js
+++ b/node_modules/webpack/lib/LibManifestPlugin.js
@@ -18,6 +18,7 @@
/** @typedef {import("./ExportsInfo").ExportInfoName} ExportInfoName */
/**
+ * Defines the manifest module data type used by this module.
* @typedef {object} ManifestModuleData
* @property {ModuleId} id
* @property {BuildMeta=} buildMeta
@@ -25,6 +26,7 @@
*/
/**
+ * Defines the lib manifest plugin options type used by this module.
* @typedef {object} LibManifestPluginOptions
* @property {string=} context Context of requests in the manifest file (defaults to the webpack context).
* @property {boolean=} entryOnly If true, only entry points will be exposed (default: true).
@@ -38,6 +40,7 @@
class LibManifestPlugin {
/**
+ * Creates an instance of LibManifestPlugin.
* @param {LibManifestPluginOptions} options the options
*/
constructor(options) {
@@ -45,7 +48,7 @@
}
/**
- * Apply the plugin
+ * Applies the plugin by registering its hooks on the compiler.
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
@@ -55,6 +58,7 @@
(compilation, callback) => {
const moduleGraph = compilation.moduleGraph;
// store used paths to detect issue and output an error. #18200
+ /** @type {Set<string>} */
const usedPaths = new Set();
asyncLib.each(
[...compilation.chunks],
--
Gitblit v1.9.3