Skip to content

Commit d889791

Browse files
authored
Merge 7324128 into b442c91
2 parents b442c91 + 7324128 commit d889791

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

jit/lib/generateRules.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,12 @@ function applyVariant(variant, matches, context) {
109109
continue
110110
}
111111

112-
let container = postcss.root({ nodes: [rule] })
112+
let container = postcss.root()
113+
if (typeof rule.clone === 'function') {
114+
container.append(rule.clone())
115+
} else {
116+
container.append(rule)
117+
}
113118

114119
function modifySelectors(modifierFunction) {
115120
container.each((rule) => {

0 commit comments

Comments
 (0)