always clone rule when applying variants
This commit is contained in:
parent
aa4723f970
commit
ccd5177a19
1 changed files with 1 additions and 5 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue