I encountered a problem when rendering an icon in a Preact component using Astro.
In the StackBlitz project you can see that the rendered SVG contains attributes in camel-case (strokeWidth instead of stroke-width), which causes a visual bug since the HTML is not valid.
Describe the bug
Hey!
I encountered a problem when rendering an icon in a Preact component using Astro. In the StackBlitz project you can see that the rendered SVG contains attributes in camel-case (
strokeWidth
instead ofstroke-width
), which causes a visual bug since the HTML is not valid.Any idea on how to fix this?
Thanks for your help! Moritz
Reproduction
https://stackblitz.com/edit/github-wpq4zq?file=astro.config.mjs
System Info
Used Package Manager
npm
Validations