Skip to content

Commit f8ad442

Browse files
Merge pull request #14 from FDiskas/bugfix/1em-to-24
Bugfix: replace 1em to 24
2 parents b3f36b2 + 9603b07 commit f8ad442

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.svgrrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ module.exports = {
1414
attributes: ['xmlns', 'className'],
1515
},
1616
],
17+
// default is 1em - replace it to 24
18+
[
19+
"@svgr/babel-plugin-replace-jsx-attribute-value",
20+
{
21+
"values": [
22+
{ "value": "1em", "newValue": 24 },
23+
]
24+
}
25+
]
1726
],
1827
},
1928
},

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"devDependencies": {
3636
"@microsoft/api-extractor": "^7.16.1",
3737
"@svgr/babel-plugin-remove-jsx-attribute": "^5.4.0",
38+
"@svgr/babel-plugin-replace-jsx-attribute-value": "^5.0.1",
3839
"@svgr/cli": "^5.5.0",
3940
"@types/react": "^17.0.11",
4041
"feather-icons": "^4.28.0",

0 commit comments

Comments
 (0)