fix: don't transform keyframes names in global selector

pull/14577/head
paoloricciuti 2 years ago
parent 61420094da
commit c997b0f68e

@ -89,7 +89,7 @@ const visitors = {
if (node.prelude.startsWith('-global-')) {
state.code.remove(start, start + 8);
} else {
} else if (!state.is_global_block) {
state.code.prependRight(start, `${state.hash}-`);
}

@ -73,6 +73,12 @@
.x{
animation: svelte-xyz-test 1s;
}
@keyframes test-in{
to{
opacity: 1;
}
}
/*}*/
@keyframes svelte-xyz-test{

@ -75,6 +75,12 @@
.x{
animation: test 1s;
}
@keyframes test-in{
to{
opacity: 1;
}
}
}
@keyframes test{

Loading…
Cancel
Save