Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Commit 94a88e6

Browse files
committed
Refactor
1 parent e7e4544 commit 94a88e6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/lib/generateRules.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,15 @@ function* resolveMatchedPlugins(classCandidate, context) {
184184
}
185185

186186
for (let [prefix, modifier] of candidatePermutations(candidatePrefix)) {
187+
let modifiers = [modifier]
188+
187189
if (context.candidateRuleMap.has(prefix)) {
188-
yield [context.candidateRuleMap.get(prefix), negative ? `-${modifier}` : modifier]
190+
let rules = context.candidateRuleMap.get(prefix)
191+
192+
for (const modifier of modifiers) {
193+
yield [rules, negative ? `-${modifier}` : modifier]
194+
}
195+
189196
return
190197
}
191198
}

0 commit comments

Comments
 (0)