npm install --save-dev @svgr/babel-plugin-remove-jsx-attribute
.babelrc
{ "plugins": [ [ "@svgr/babel-plugin-remove-jsx-attribute", { "elements": ["svg"], "attributes": ["width", "height"] } ] ] }
MIT
Last updated 2 years ago