Skip to content

SVGO: fix removeUselessDefs#734

Merged
rodlie merged 1 commit into
mainfrom
svgo-defs
Apr 16, 2026
Merged

SVGO: fix removeUselessDefs#734
rodlie merged 1 commit into
mainfrom
svgo-defs

Conversation

@rodlie
Copy link
Copy Markdown
Member

@rodlie rodlie commented Apr 16, 2026

This fixes 'removeUselessDefs' in our SVG optimizer, as the previous implementation didn't catch all the elements in the doc (and removed all defs).

Project file:
svgo-defs-test.zip

Before

svgo-defs-before

After

svgo-defs-after

This fixes 'removeUselessDefs', as the previous implementation didn't catch all the elements in the doc (and removed all defs).
@rodlie rodlie added this to the 1.0.0 milestone Apr 16, 2026
@rodlie rodlie merged commit 9108717 into main Apr 16, 2026
6 checks passed
@rodlie rodlie deleted the svgo-defs branch April 16, 2026 13:33
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.

1 participant