Skip to content

Commit 6846c1d

Browse files
committed
fix: apply cssmodules to animation-name
1 parent 068e4e3 commit 6846c1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/processors/processor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export default class Processor {
168168
* @param node The ast "Selector" node to parse
169169
*/
170170
public storeAnimationProperties = (node: TemplateNode): void => {
171-
if (node.type === 'Declaration' && node.property === 'animation') {
171+
if (node.type === 'Declaration' && ['animation', 'animation-name'].includes(node.property)) {
172172
let names = 0;
173173
let properties = 0;
174174
node.value.children.forEach((item: TemplateNode) => {

0 commit comments

Comments
 (0)