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/rules/BasicMatcherRulePlugin.js | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/node_modules/webpack/lib/rules/BasicMatcherRulePlugin.js b/node_modules/webpack/lib/rules/BasicMatcherRulePlugin.js
index 0974da3..a1701a4 100644
--- a/node_modules/webpack/lib/rules/BasicMatcherRulePlugin.js
+++ b/node_modules/webpack/lib/rules/BasicMatcherRulePlugin.js
@@ -11,6 +11,7 @@
/** @typedef {import("./RuleSetCompiler")} RuleSetCompiler */
/**
+ * Defines the keys of types type used by this module.
* @template T
* @template {T[keyof T]} V
* @typedef {import("./RuleSetCompiler").KeysOfTypes<T, V>} KeysOfTypes
@@ -22,17 +23,22 @@
class BasicMatcherRulePlugin {
/**
+ * Creates an instance of BasicMatcherRulePlugin.
* @param {BasicMatcherRuleKeys} ruleProperty the rule property
* @param {string=} dataProperty the data property
* @param {boolean=} invert if true, inverts the condition
*/
constructor(ruleProperty, dataProperty, invert) {
+ /** @type {BasicMatcherRuleKeys} */
this.ruleProperty = ruleProperty;
+ /** @type {string | BasicMatcherRuleKeys} */
this.dataProperty = dataProperty || ruleProperty;
+ /** @type {boolean} */
this.invert = invert || false;
}
/**
+ * Applies the plugin by registering its hooks on the compiler.
* @param {RuleSetCompiler} ruleSetCompiler the rule set compiler
* @returns {void}
*/
--
Gitblit v1.9.3