File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -581,14 +581,14 @@ class UnoGeneratorInternal<Theme extends object = object> {
581
581
const staticMatch = this . config . rulesStaticMap [ processed ]
582
582
if ( staticMatch ) {
583
583
if ( staticMatch [ 1 ] && ( internal || ! staticMatch [ 2 ] ?. internal ) ) {
584
- context . generator . activatedRules . add ( staticMatch )
585
584
if ( this . config . details )
586
585
context . rules ! . push ( staticMatch )
587
586
588
587
const index = this . config . rules . indexOf ( staticMatch )
589
588
const entries = normalizeCSSValues ( staticMatch [ 1 ] ) . filter ( i => i . length )
590
589
const meta = staticMatch [ 2 ]
591
590
if ( entries . length ) {
591
+ context . generator . activatedRules . add ( staticMatch )
592
592
return entries . map ( ( css ) => {
593
593
if ( isString ( css ) )
594
594
return [ index , css , meta ]
@@ -635,7 +635,6 @@ class UnoGeneratorInternal<Theme extends object = object> {
635
635
if ( ! result )
636
636
continue
637
637
638
- context . generator . activatedRules . add ( rule )
639
638
if ( this . config . details )
640
639
context . rules ! . push ( rule as DynamicRule < Theme > )
641
640
@@ -657,6 +656,7 @@ class UnoGeneratorInternal<Theme extends object = object> {
657
656
658
657
const entries = normalizeCSSValues ( result ) . filter ( i => i . length ) as ( string | CSSEntriesInput ) [ ]
659
658
if ( entries . length ) {
659
+ context . generator . activatedRules . add ( rule )
660
660
const index = this . config . rules . indexOf ( rule )
661
661
return entries . map ( ( css ) : ParsedUtil | RawUtil => {
662
662
if ( isString ( css ) )
You can’t perform that action at this time.
0 commit comments