Skip to content
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

Fix config type #1573

Merged
merged 1 commit into from
Sep 15, 2021
Merged

Fix config type #1573

merged 1 commit into from
Sep 15, 2021

Conversation

thewilkybarkid
Copy link
Contributor

@thewilkybarkid thewilkybarkid commented Sep 15, 2021

#1565 changed the signature when using SVGO programmatically so that the config argument is required. This breaks Parcel's usage where it might be undefined (https://github.com/parcel-bundler/parcel/blob/6f6759e5c2140aa8d7c3be70d56432258439ff19/packages/optimizers/svgo/src/SVGOOptimizer.js#L26-L32).

I've matched the original optimize function, and add some basic tests to cover it.

Refs parcel-bundler/parcel#6481 (comment)

@TrySound
Copy link
Member

Thanks!

@TrySound
Copy link
Member

Released in https://github.com/svg/svgo/releases/tag/v2.6.1

@thewilkybarkid thewilkybarkid deleted the node-config branch September 15, 2021 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants