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
During the investigation of #26, I discovered all the errors from svgo are silent.
Missing error handler when receiving the svgo results, lib/modules/minifySvg.js#L9
The text was updated successfully, but these errors were encountered:
I can pull request the solution in a short bit, for now I'm dropping the solution here:
svgo.optimize(rendered, ({ error, data }) => { if (error) reject(new Error(error)) resolve(reshapeParser(data, ctx)) })
Backwards compatible node solution:
svgo.optimize(rendered, (res) => { if (res.error) reject(new Error(res.error)) resolve(reshapeParser(res.data, ctx)) })
Edit: added backward compatible solution
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Problem
During the investigation of #26, I discovered all the errors from svgo are silent.
Cause
Missing error handler when receiving the svgo results, lib/modules/minifySvg.js#L9
The text was updated successfully, but these errors were encountered: