-
-
Notifications
You must be signed in to change notification settings - Fork 152
Open
Description
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.
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.
Reproduction
The react example
System Info
Windows, Node 21Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.
Metadata
Metadata
Assignees
Labels
No labels
