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/dependencies/AMDPlugin.js |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/node_modules/webpack/lib/dependencies/AMDPlugin.js b/node_modules/webpack/lib/dependencies/AMDPlugin.js
index 4fa2f41..a81b5f4 100644
--- a/node_modules/webpack/lib/dependencies/AMDPlugin.js
+++ b/node_modules/webpack/lib/dependencies/AMDPlugin.js
@@ -46,6 +46,7 @@
 
 class AMDPlugin {
 	/**
+	 * Creates an instance of AMDPlugin.
 	 * @param {AmdOptions} amdOptions the AMD options
 	 */
 	constructor(amdOptions) {
@@ -53,12 +54,12 @@
 	}
 
 	/**
-	 * Apply the plugin
+	 * Applies the plugin by registering its hooks on the compiler.
 	 * @param {Compiler} compiler the compiler instance
 	 * @returns {void}
 	 */
 	apply(compiler) {
-		const amdOptions = this.amdOptions;
+		const { amdOptions } = this;
 		compiler.hooks.compilation.tap(
 			PLUGIN_NAME,
 			(compilation, { contextModuleFactory, normalModuleFactory }) => {
@@ -133,6 +134,7 @@
 					});
 
 				/**
+				 * Handles the hook callback for this code path.
 				 * @param {Parser} parser parser parser
 				 * @param {JavascriptParserOptions} parserOptions parserOptions
 				 * @returns {void}
@@ -141,6 +143,7 @@
 					if (parserOptions.amd !== undefined && !parserOptions.amd) return;
 
 					/**
+					 * Processes the provided option expr.
 					 * @param {string} optionExpr option expression
 					 * @param {string} rootName root name
 					 * @param {GetMembers} getMembers callback

--
Gitblit v1.9.3