Skip to content

Commit

Permalink
refactor to use includes
Browse files Browse the repository at this point in the history
  • Loading branch information
vltansky committed Jun 6, 2024
1 parent c3b3a9a commit e109fe3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,7 @@ 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 e109fe3

Please sign in to comment.