Skip to content

Commit

Permalink
always clone rule when applying variants
Browse files Browse the repository at this point in the history
  • Loading branch information
bradlc authored and adamwathan committed Apr 23, 2021
1 parent 5a6a3f1 commit 2e01cd8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions jit/lib/generateRules.js
Expand Up @@ -110,11 +110,7 @@ function applyVariant(variant, matches, context) {
}

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

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

0 comments on commit 2e01cd8

Please sign in to comment.