1
0
mirror of https://github.com/svg/svgo.git synced 2026-01-25 18:41:39 +03:00
Commit Graph

9 Commits

Author SHA1 Message Date
Seth Falco
f3495ff6c9 fix(removeEmptyContainers): skip if filter is applied via styles as well (#2089)
Fixes a bug where we were too eager to remove empty containers.

We already had logic to skip removing empty containers if it had the
filter attribute, which is needed to apply a filter to the whole area.
However, the filter can also be defined through CSS. We did not
properly handle this case, and treated the node as if it had no filter
at all.

This computes the styles and checks the stylesheet as well. (We also
move the logic down to avoid computing the styles eagerly.)
2024-12-22 16:01:22 +00:00
Seth Falco
97d7d00add add: centralize exports to svgo (#2071) 2024-09-07 19:26:05 +01:00
Seth Falco
0c13740fdd feat: expose builtin plugins (#2027) 2024-06-09 12:28:37 +01:00
Seth Falco
78403d3dc9 feat: export version constant (#2016) 2024-05-27 20:28:13 +01:00
Jon Dufresne
2442f74239 chore: convert project to us ECMAScript modules (preserving CJS compatibility) (#1905) 2024-01-03 16:17:37 +00:00
Seth Falco
2c408ce56f refactor: improve regression testing (#1898) 2023-12-23 06:56:46 +00:00
Bogdan Chadkin
a99cc08e4f Format tests with prettier (#1380)
Will format the code with prettier in a few commits.
2021-02-27 23:17:47 +03:00
Bogdan Chadkin
82778c872d Reduce browser build size 1450kB -> 820kB 2021-02-19 15:34:37 +03:00
Bogdan Chadkin
d273b26605 Provide es module bundle for browser (#1326)
The was a lot of requests to provide browser compatible module. In this
diff I added `svgo/dist/svgo.browser.js` bundle and tested it with
playwright.
2021-02-16 19:11:01 +03:00