We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The source code is in /lib/svgo.js:41
const optimize = (svgstr, config) => { ... const maxPassCount = config.multipass ? 10 : 1; ... for (let i = 0; i < maxPassCount; i += 1) { svgjs = svg2js(svgstr); // ⚠️ "svg2js" always using origin data "svgstr" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... } ...
I think, "svgstr" should be the last optimized data.
for (let i = 0; i < maxPassCount; i += 1) { svgjs = svg2js(svgstr); .... svgjs = js2svg(svgjs, config.js2svg); ... svgstr = svgjs.data ~~~~~~~~~ }
The text was updated successfully, but these errors were encountered:
Right, need to add tests. Thanks for catch!
Sorry, something went wrong.
Fix multipass
3758347
Ref #1330 #1148 #1133 #1227 Took tests from #1177
Fix multipass (#1332)
efa62c8
Ref #1330 #1148 #1133 #1227 #985 #943 Took tests from #1177
Fixed in 2.0.1
No branches or pull requests
The source code is in /lib/svgo.js:41
I think, "svgstr" should be the last optimized data.
The text was updated successfully, but these errors were encountered: