Skip to content

Commit 2e01cd8

Browse files
bradlcadamwathan
authored andcommitted
always clone rule when applying variants
1 parent 5a6a3f1 commit 2e01cd8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

jit/lib/generateRules.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,7 @@ function applyVariant(variant, matches, context) {
110110
}
111111

112112
let container = postcss.root()
113-
if (typeof rule.clone === 'function') {
114-
container.append(rule.clone())
115-
} else {
116-
container.append(rule)
117-
}
113+
container.append(rule.clone())
118114

119115
function modifySelectors(modifierFunction) {
120116
container.each((rule) => {

0 commit comments

Comments
 (0)