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/library/AmdLibraryPlugin.js |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/node_modules/webpack/lib/library/AmdLibraryPlugin.js b/node_modules/webpack/lib/library/AmdLibraryPlugin.js
index a38def5..4b2395b 100644
--- a/node_modules/webpack/lib/library/AmdLibraryPlugin.js
+++ b/node_modules/webpack/lib/library/AmdLibraryPlugin.js
@@ -17,26 +17,34 @@
 /** @typedef {import("../Compilation").ChunkHashContext} ChunkHashContext */
 /** @typedef {import("../javascript/JavascriptModulesPlugin").RenderContext} RenderContext */
 /** @typedef {import("../util/Hash")} Hash */
-/** @template T @typedef {import("./AbstractLibraryPlugin").LibraryContext<T>} LibraryContext<T> */
+/**
+ * Defines the shared type used by this module.
+ * @template T
+ * @typedef {import("./AbstractLibraryPlugin").LibraryContext<T>} LibraryContext<T>
+ */
 
 /**
+ * Defines the amd library plugin options type used by this module.
  * @typedef {object} AmdLibraryPluginOptions
  * @property {LibraryType} type
  * @property {boolean=} requireAsWrapper
  */
 
 /**
+ * Defines the amd library plugin parsed type used by this module.
  * @typedef {object} AmdLibraryPluginParsed
  * @property {string} name
  * @property {string} amdContainer
  */
 
 /**
+ * Represents the amd library plugin runtime component.
  * @typedef {AmdLibraryPluginParsed} T
  * @extends {AbstractLibraryPlugin<AmdLibraryPluginParsed>}
  */
 class AmdLibraryPlugin extends AbstractLibraryPlugin {
 	/**
+	 * Creates an instance of AmdLibraryPlugin.
 	 * @param {AmdLibraryPluginOptions} options the plugin options
 	 */
 	constructor(options) {
@@ -44,12 +52,14 @@
 			pluginName: "AmdLibraryPlugin",
 			type: options.type
 		});
+		/** @type {AmdLibraryPluginOptions["requireAsWrapper"]} */
 		this.requireAsWrapper = options.requireAsWrapper;
 	}
 
 	/**
+	 * Returns preprocess as needed by overriding.
 	 * @param {LibraryOptions} library normalized library option
-	 * @returns {T | false} preprocess as needed by overriding
+	 * @returns {T} preprocess as needed by overriding
 	 */
 	parseOptions(library) {
 		const { name, amdContainer } = library;
@@ -70,6 +80,7 @@
 	}
 
 	/**
+	 * Returns source with library export.
 	 * @param {Source} source source
 	 * @param {RenderContext} renderContext render context
 	 * @param {LibraryContext<T>} libraryContext context
@@ -151,6 +162,7 @@
 	}
 
 	/**
+	 * Processes the provided chunk.
 	 * @param {Chunk} chunk the chunk
 	 * @param {Hash} hash hash
 	 * @param {ChunkHashContext} chunkHashContext chunk hash context

--
Gitblit v1.9.3