You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each SVG is run through svgo separately. Since svgo 3.1.0, the removeHiddenElems removes the symbol element because it is not referenced. However, it is referenced by a different SVG that will be minified separately.
There should be an option to disable this behavior, specifically when multiple SVGs will be embedded on the same page. You can disable the entire removeHiddenElems plugin, but this also disables lots of other behavior such as removing invisible elements. It would be nice to have a more granular option.
Desktop (please complete the following information):
SVGO Version 3.3.2
NodeJs Version 20
OS: N/A
The text was updated successfully, but these errors were encountered:
Describe the bug
We have the following test case in Parcel:
Each SVG is run through
svgo
separately. Since svgo 3.1.0, theremoveHiddenElems
removes thesymbol
element because it is not referenced. However, it is referenced by a different SVG that will be minified separately.There should be an option to disable this behavior, specifically when multiple SVGs will be embedded on the same page. You can disable the entire
removeHiddenElems
plugin, but this also disables lots of other behavior such as removing invisible elements. It would be nice to have a more granular option.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: