Open Karina1703 opened 1 year ago
It is not supported.
For anyone encountering the same issue, SVGO removes SVG defs by default. You can override the svgoConfig to make it work.
FYI: https://github.com/svg/svgo/issues/1896#issuecomment-1866798474
vite config example:
import svgr from '@svgr/rollup';
...
plugins: [
svgr({
svgoConfig: {
plugins: [
{
name: 'preset-default',
params: {
overrides: {
removeHiddenElems: false,
cleanupIds: false,
},
},
},
],
},
}),
],
...
I would like something like that
But this doesn't work