Open lloydjatkinson opened 2 months ago
Hi,
My transform function does not seem to run. I even added a console log in here, expecting some output in the terminal and I get none, so I believe the function is simply not being called.
Icons({ compiler: 'jsx', jsx: 'react', scale: 1, transform(svg) { return svg.replace(/stroke-width="\d+(\.\d+)?"/, 'stroke-width="2"'); }, }),
I'm trying to update the stroke width, but the attribute does not get updated.
The react example
Windows, Node 21
pnpm
Describe the bug
Hi,
My transform function does not seem to run. I even added a console log in here, expecting some output in the terminal and I get none, so I believe the function is simply not being called.
I'm trying to update the stroke width, but the attribute does not get updated.
Reproduction
The react example
System Info
Used Package Manager
pnpm
Validations