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/dependencies/RuntimeRequirementsDependency.js | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/node_modules/webpack/lib/dependencies/RuntimeRequirementsDependency.js b/node_modules/webpack/lib/dependencies/RuntimeRequirementsDependency.js
index ec46503..cd53de4 100644
--- a/node_modules/webpack/lib/dependencies/RuntimeRequirementsDependency.js
+++ b/node_modules/webpack/lib/dependencies/RuntimeRequirementsDependency.js
@@ -19,16 +19,18 @@
class RuntimeRequirementsDependency extends NullDependency {
/**
+ * Creates an instance of RuntimeRequirementsDependency.
* @param {RawRuntimeRequirements} runtimeRequirements runtime requirements
*/
constructor(runtimeRequirements) {
super();
this.runtimeRequirements = new Set(runtimeRequirements);
+ /** @type {undefined | string} */
this._hashUpdate = undefined;
}
/**
- * Update the hash
+ * Updates the hash with the data contributed by this instance.
* @param {Hash} hash hash to be updated
* @param {UpdateHashContext} context context
* @returns {void}
@@ -41,6 +43,7 @@
}
/**
+ * Serializes this instance into the provided serializer context.
* @param {ObjectSerializerContext} context context
*/
serialize(context) {
@@ -50,6 +53,7 @@
}
/**
+ * Restores this instance from the provided deserializer context.
* @param {ObjectDeserializerContext} context context
*/
deserialize(context) {
@@ -68,6 +72,7 @@
NullDependency.Template
) {
/**
+ * Applies the plugin by registering its hooks on the compiler.
* @param {Dependency} dependency the dependency for which the template should be applied
* @param {ReplaceSource} source the current replace source which can be modified
* @param {DependencyTemplateContext} templateContext the context object
--
Gitblit v1.9.3