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/ProvidePlugin.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/node_modules/webpack/lib/ProvidePlugin.js b/node_modules/webpack/lib/ProvidePlugin.js
index 68f2d0a..098cce3 100644
--- a/node_modules/webpack/lib/ProvidePlugin.js
+++ b/node_modules/webpack/lib/ProvidePlugin.js
@@ -24,6 +24,7 @@
class ProvidePlugin {
/**
+ * Creates an instance of ProvidePlugin.
* @param {Record<string, string | string[]>} definitions the provided identifiers
*/
constructor(definitions) {
@@ -31,7 +32,7 @@
}
/**
- * Apply the plugin
+ * Applies the plugin by registering its hooks on the compiler.
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
@@ -53,6 +54,7 @@
new ProvidedDependency.Template()
);
/**
+ * Handles the hook callback for this code path.
* @param {JavascriptParser} parser the parser
* @param {JavascriptParserOptions} parserOptions options
* @returns {void}
--
Gitblit v1.9.3