Skip to content

Commit

Permalink
fix: common id issue in svg files (#77)
Browse files Browse the repository at this point in the history
affects: @medly/babel-config-react
  • Loading branch information
gmukul01 authored Oct 14, 2021
1 parent 05c9262 commit 3be418c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion packages/babel-config-react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,20 @@ module.exports = function (api) {
}
],
'@babel/plugin-transform-runtime',
'inline-react-svg'
[
'inline-react-svg',
{
svgo: {
plugins: [
{
cleanupIDs: {
minify: false
}
}
]
}
}
]
];

if (api.env() === 'development') {
Expand Down

0 comments on commit 3be418c

Please sign in to comment.