Open malininss opened 3 years ago
It's likely due to the svgo update from v0 to v1, in v2 of this package vs v1. Possibly related to #103?
any updates?
@malininss just make sure to have svgo
removeAttrs
in your .babelrc
{
"presets": ["next/babel"],
"plugins": [
[
"inline-react-svg",
{
"svgo": {
"plugins": [
{
"name": "removeAttrs",
"params": { "attrs": "(data-name)" }
},
"cleanupIDs"
]
}
}
]
]
}
There is an examlpe of svg file:
I expect that in html this file will look the same. But the viewBox attribute is lost in html. The code looks like this:
There was no such problem in version 1.1.2