@svgr/webpack (https://react-svgr.com/docs/webpack/) is changing the name of classes in svg, by prefixing them, for example class circle
is changed to spinner-svg__circle
.
I have already tried the below two options to disable that behaviour, but none of them worked:
source: https://github.com/gregberge/svgr/issues/411 and https://github.com/gregberge/svgr/pull/412/files
{ test: /\.svg$/, use: [ { loader: '@svgr/webpack', options: { svgoConfig: { plugins: [{ prefixIds: false }] } } },'url-loader' ] }
the below one I found here: Pass options to the builtin svgo from svgr/webpack
svgoConfig: { plugins: [ { prefixIds: { prefixIds: false, prefixClassNames: false } } ] }
source: https://github.com/gregberge/svgr/issues/400
svgoConfig: { plugins: [ { prefixIds: { prefix: false } } ] }
Is there any other way to solve it?