@@ -573,7 +573,7 @@ function* recordCandidates(matches, classCandidate) {
573
573
}
574
574
}
575
575
576
- function * resolveMatches ( candidate , context , original = candidate ) {
576
+ function * resolveMatches ( candidate , context ) {
577
577
let separator = context . tailwindConfig . separator
578
578
let [ classCandidate , ...variants ] = splitWithSeparator ( candidate , separator ) . reverse ( )
579
579
let important = false
@@ -583,15 +583,6 @@ function* resolveMatches(candidate, context, original = candidate) {
583
583
classCandidate = classCandidate . slice ( 1 )
584
584
}
585
585
586
- if ( flagEnabled ( context . tailwindConfig , 'variantGrouping' ) ) {
587
- if ( classCandidate . startsWith ( '(' ) && classCandidate . endsWith ( ')' ) ) {
588
- let base = variants . slice ( ) . reverse ( ) . join ( separator )
589
- for ( let part of splitAtTopLevelOnly ( classCandidate . slice ( 1 , - 1 ) , ',' ) ) {
590
- yield * resolveMatches ( base + separator + part , context , original )
591
- }
592
- }
593
- }
594
-
595
586
// TODO: Reintroduce this in ways that doesn't break on false positives
596
587
// function sortAgainst(toSort, against) {
597
588
// return toSort.slice().sort((a, z) => {
@@ -780,7 +771,7 @@ function* resolveMatches(candidate, context, original = candidate) {
780
771
match [ 1 ] . raws . tailwind = { ...match [ 1 ] . raws . tailwind , candidate }
781
772
782
773
// Apply final format selector
783
- match = applyFinalFormat ( match , { context, candidate, original } )
774
+ match = applyFinalFormat ( match , { context, candidate } )
784
775
785
776
// Skip rules with invalid selectors
786
777
// This will cause the candidate to be added to the "not class"
@@ -794,7 +785,7 @@ function* resolveMatches(candidate, context, original = candidate) {
794
785
}
795
786
}
796
787
797
- function applyFinalFormat ( match , { context, candidate, original } ) {
788
+ function applyFinalFormat ( match , { context, candidate } ) {
798
789
if ( ! match [ 0 ] . collectedFormats ) {
799
790
return match
800
791
}
0 commit comments