Skip to content

Commit

Permalink
Merge 7324128 into b442c91
Browse files Browse the repository at this point in the history
  • Loading branch information
jscissr authored Apr 20, 2021
2 parents b442c91 + 7324128 commit d889791
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jit/lib/generateRules.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,12 @@ function applyVariant(variant, matches, context) {
continue
}

let container = postcss.root({ nodes: [rule] })
let container = postcss.root()
if (typeof rule.clone === 'function') {
container.append(rule.clone())
} else {
container.append(rule)
}

function modifySelectors(modifierFunction) {
container.each((rule) => {
Expand Down

0 comments on commit d889791

Please sign in to comment.