Skip to content

Commit 1a503b9

Browse files
committed
Properly flag variants using modifiers
1 parent b28f464 commit 1a503b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib/generateRules.js

+4
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ function applyVariant(variant, matches, context) {
153153
if (match) {
154154
variant = match[1]
155155
args.modifier = match[2]
156+
157+
if (!flagEnabled(context.tailwindConfig, 'generalizedModifiers')) {
158+
return []
159+
}
156160
}
157161
}
158162

0 commit comments

Comments
 (0)