feat: refactoring project
This commit is contained in:
4
node_modules/webpack/lib/rules/BasicMatcherRulePlugin.js
generated
vendored
4
node_modules/webpack/lib/rules/BasicMatcherRulePlugin.js
generated
vendored
@@ -5,6 +5,7 @@
|
||||
|
||||
"use strict";
|
||||
|
||||
/** @typedef {import("../../declarations/WebpackOptions").RuleSetRule} RuleSetRule */
|
||||
/** @typedef {import("./RuleSetCompiler")} RuleSetCompiler */
|
||||
/** @typedef {import("./RuleSetCompiler").RuleCondition} RuleCondition */
|
||||
|
||||
@@ -30,7 +31,8 @@ class BasicMatcherRulePlugin {
|
||||
(path, rule, unhandledProperties, result) => {
|
||||
if (unhandledProperties.has(this.ruleProperty)) {
|
||||
unhandledProperties.delete(this.ruleProperty);
|
||||
const value = rule[this.ruleProperty];
|
||||
const value =
|
||||
rule[/** @type {keyof RuleSetRule} */ (this.ruleProperty)];
|
||||
const condition = ruleSetCompiler.compileCondition(
|
||||
`${path}.${this.ruleProperty}`,
|
||||
value
|
||||
|
||||
Reference in New Issue
Block a user