WXL
4 天以前 2cc85c64f1c64a2dbaeae276a3e2ca8420de76b7
node_modules/webpack/lib/rules/BasicEffectRulePlugin.js
@@ -9,6 +9,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
@@ -20,15 +21,19 @@
class BasicEffectRulePlugin {
   /**
    * Creates an instance of BasicEffectRulePlugin.
    * @param {BasicEffectRuleKeys} ruleProperty the rule property
    * @param {string=} effectType the effect type
    */
   constructor(ruleProperty, effectType) {
      /** @type {BasicEffectRuleKeys} */
      this.ruleProperty = ruleProperty;
      /** @type {string | BasicEffectRuleKeys} */
      this.effectType = effectType || ruleProperty;
   }
   /**
    * Applies the plugin by registering its hooks on the compiler.
    * @param {RuleSetCompiler} ruleSetCompiler the rule set compiler
    * @returns {void}
    */