Skip to content

Commit

Permalink
fix for transforming nodes with multiple media queries (#1305)
Browse files Browse the repository at this point in the history
  • Loading branch information
DK-Stern committed Feb 21, 2022
1 parent b367a2d commit 26e113b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/optimizer/lib/transformers/ApplyCommonAttributes.js
Expand Up @@ -210,6 +210,9 @@ class ApplyCommonAttributes {
`Cannot remove boilerplate. Failed transforming ${attribute}="${node.attribs[attribute]}".`,
e
);
this.nodesToTransform = this.nodesToTransform.filter(
(nodeToTransform) => nodeToTransform !== node
);
this.canRemoveBoilerplate = false;
}
}
Expand Down

0 comments on commit 26e113b

Please sign in to comment.