Skip to content

Commit

Permalink
refactor to use includes
Browse files Browse the repository at this point in the history
  • Loading branch information
vltansky authored and SethFalco committed Jun 14, 2024
1 parent 704e5a1 commit 4cd65f1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,12 @@ const parseStylesheet = (css, dynamic) => {
}
if (cssNode.type === 'Atrule') {
if (
cssNode.name === 'keyframes' ||
cssNode.name === '-webkit-keyframes' ||
cssNode.name === '-o-keyframes' ||
cssNode.name === '-moz-keyframes'
[
'keyframes',
'-webkit-keyframes',
'-o-keyframes',
'-moz-keyframes',
].includes(cssNode.name)
) {
return csstreeWalkSkip;
}
Expand Down

0 comments on commit 4cd65f1

Please sign in to comment.