-
-
Notifications
You must be signed in to change notification settings - Fork 425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Corrupted icons after update from 3.1 to 4.0 #219
Comments
Seems like I found the reason of issue. My icons contains
@svgr/webpack version 3.1 with this config ignores If I remove
I'm not sure what behavior is correct, but At least it works different on 3.1 and 4.0 versions. |
Hello,@EugeneDraitsev, First I tried to reproduced the issue with your repository but some scripts are missing:
I tried to run svgr v4 on your provided SVG and it works fine. It looks like a SVGO issue but it is very weird that the problem does not happen in |
Hi, @neoziro I added missing files to my repo and now it works fine (I just forgot to add files after |
@EugeneDraitsev it should be fixed in v4.0.1. |
@neoziro, thanks for that fast fix. const LINE_BREAKS_REGEXP = /[\t\r\n\u0085\u2028\u2029]+/g; Also I updated my repo from example and test regex above and seems like it works with it |
@EugeneDraitsev yes, since |
@neoziro but it still fails with |
🐛 Bug Report
After update
@svgr/webpack
from version 3.1 to 4.0 some of icons looks corrupted. I'm using unpacked CRA 2.0 with default config.To Reproduce
Use this svgs on version 3.1 and then on version 4.0:
Steps to reproduce the behavior:
Expected behaviour
3.1:
Actual behaviour
4.0:
Link to repl or repo (highly encouraged)
Please provide a minimal repository on GitHub.
https://github.com/EugeneDraitsev/svgo-4.0-corrupted-icons
you can change
@svgr/webpack
from 4.0 to 3.1 to see resultsThe text was updated successfully, but these errors were encountered: