@@ -569,7 +569,7 @@ function* recordCandidates(matches, classCandidate) {
569569 }
570570}
571571
572- function * resolveMatches ( candidate , context , original = candidate ) {
572+ function * resolveMatches ( candidate , context ) {
573573 let separator = context . tailwindConfig . separator
574574 let [ classCandidate , ...variants ] = splitWithSeparator ( candidate , separator ) . reverse ( )
575575 let important = false
@@ -579,15 +579,6 @@ function* resolveMatches(candidate, context, original = candidate) {
579579 classCandidate = classCandidate . slice ( 1 )
580580 }
581581
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-
591582 // TODO: Reintroduce this in ways that doesn't break on false positives
592583 // function sortAgainst(toSort, against) {
593584 // return toSort.slice().sort((a, z) => {
@@ -776,7 +767,7 @@ function* resolveMatches(candidate, context, original = candidate) {
776767 match [ 1 ] . raws . tailwind = { ...match [ 1 ] . raws . tailwind , candidate }
777768
778769 // Apply final format selector
779- match = applyFinalFormat ( match , { context, candidate, original } )
770+ match = applyFinalFormat ( match , { context, candidate } )
780771
781772 // Skip rules with invalid selectors
782773 // This will cause the candidate to be added to the "not class"
@@ -790,7 +781,7 @@ function* resolveMatches(candidate, context, original = candidate) {
790781 }
791782}
792783
793- function applyFinalFormat ( match , { context, candidate, original } ) {
784+ function applyFinalFormat ( match , { context, candidate } ) {
794785 if ( ! match [ 0 ] . collectedFormats ) {
795786 return match
796787 }
@@ -801,7 +792,7 @@ function applyFinalFormat(match, { context, candidate, original }) {
801792 try {
802793 finalFormat = formatVariantSelector ( match [ 0 ] . collectedFormats , {
803794 context,
804- candidate : original ,
795+ candidate,
805796 } )
806797 } catch {
807798 // The format selector we produced is invalid
0 commit comments