Skip to content

Commit

Permalink
use new set
Browse files Browse the repository at this point in the history
  • Loading branch information
KTibow committed Dec 28, 2023
1 parent 927c326 commit e62675a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/optimizePathOrder.js
Expand Up @@ -34,7 +34,7 @@ exports.fn = (root, params) => {
if (hasScripts(node)) {
deoptimized = true;
}
if (!pathElems.includes(node.name) || !node.attributes.d || deoptimized)
if (!pathElems.has(node.name) || !node.attributes.d || deoptimized)
return;

const computedStyle = computeStyle(stylesheet, node);
Expand Down

0 comments on commit e62675a

Please sign in to comment.