From fc438629776365c78c8e95af4a16de70d795d30b Mon Sep 17 00:00:00 2001 From: Artem Gusev Date: Thu, 19 Aug 2021 12:18:16 +0700 Subject: [PATCH] ignore css keyframes animation styles --- rule.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rule.js b/rule.js index 2bfb232..68ec521 100644 --- a/rule.js +++ b/rule.js @@ -69,6 +69,13 @@ module.exports = { // e.g. `{ ...foo }` return; } + + if (property.key.type === 'Literal') { + // Skip literal keys for now. + // e.g. `@keyframes myAnimation: { }` + return; + } + definedClasses[property.key.name] = property; }); }