@@ -569,7 +569,7 @@ function* recordCandidates(matches, classCandidate) {
569
569
}
570
570
}
571
571
572
- function * resolveMatches ( candidate , context , original = candidate ) {
572
+ function * resolveMatches ( candidate , context ) {
573
573
let separator = context . tailwindConfig . separator
574
574
let [ classCandidate , ...variants ] = splitWithSeparator ( candidate , separator ) . reverse ( )
575
575
let important = false
@@ -579,15 +579,6 @@ function* resolveMatches(candidate, context, original = candidate) {
579
579
classCandidate = classCandidate . slice ( 1 )
580
580
}
581
581
582
- if ( flagEnabled ( context . tailwindConfig , 'variantGrouping' ) ) {
583
- if ( classCandidate . startsWith ( '(' ) && classCandidate . endsWith ( ')' ) ) {
584
- let base = variants . slice ( ) . reverse ( ) . join ( separator )
585
- for ( let part of splitAtTopLevelOnly ( classCandidate . slice ( 1 , - 1 ) , ',' ) ) {
586
- yield * resolveMatches ( base + separator + part , context , original )
587
- }
588
- }
589
- }
590
-
591
582
// TODO: Reintroduce this in ways that doesn't break on false positives
592
583
// function sortAgainst(toSort, against) {
593
584
// return toSort.slice().sort((a, z) => {
@@ -776,7 +767,7 @@ function* resolveMatches(candidate, context, original = candidate) {
776
767
match [ 1 ] . raws . tailwind = { ...match [ 1 ] . raws . tailwind , candidate }
777
768
778
769
// Apply final format selector
779
- match = applyFinalFormat ( match , { context, candidate, original } )
770
+ match = applyFinalFormat ( match , { context, candidate } )
780
771
781
772
// Skip rules with invalid selectors
782
773
// This will cause the candidate to be added to the "not class"
@@ -790,7 +781,7 @@ function* resolveMatches(candidate, context, original = candidate) {
790
781
}
791
782
}
792
783
793
- function applyFinalFormat ( match , { context, candidate, original } ) {
784
+ function applyFinalFormat ( match , { context, candidate } ) {
794
785
if ( ! match [ 0 ] . collectedFormats ) {
795
786
return match
796
787
}
@@ -801,7 +792,7 @@ function applyFinalFormat(match, { context, candidate, original }) {
801
792
try {
802
793
finalFormat = formatVariantSelector ( match [ 0 ] . collectedFormats , {
803
794
context,
804
- candidate : original ,
795
+ candidate,
805
796
} )
806
797
} catch {
807
798
// The format selector we produced is invalid
0 commit comments