diff --git a/lib/style.js b/lib/style.js index ff8aa9864..cade07b5f 100644 --- a/lib/style.js +++ b/lib/style.js @@ -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; }