System Info
rspack 2.2.3
Details
@value replacement for animation + @keyframes produce broken output:
===== input =====
@value animName: pulseAnim;
.anim {
animation: animName 2s linear;
}
@keyframes animName {
from { opacity: 0; }
}
===== rspack (native css/module) output =====
.css-modules-value-animation-src_index_css-anim {
animation: pulseAnim 2s linear;
}
@keyframes css-modules-value-animation-src_index_css-animName {
from { opacity: 0; }
}
note - webpack native css also has an issue, though with different output: webpack/webpack#22030
Reproduce link
https://github.com/Knagis/rspack-webpack-css-value-animation
Reproduce Steps
npm install
npm run build
System Info
rspack 2.2.3
Details
@valuereplacement foranimation+@keyframesproduce broken output:note - webpack native css also has an issue, though with different output: webpack/webpack#22030
Reproduce link
https://github.com/Knagis/rspack-webpack-css-value-animation
Reproduce Steps