@svgr/babel-plugin-replace-jsx-attribute-value
v8.0.0 babel-plugin
@svgr/babel-plugin-replace-jsx-attribute-value
Install
npm install --save-dev @svgr/babel-plugin-replace-jsx-attribute-value
Usage
.babelrc
{
"plugins": [
[
"@svgr/babel-plugin-replace-jsx-attribute-value",
{
"values": [
{ "value": "#000", "newValue": "#fff" },
{ "value": "blue", "newValue": "props.color", "literal": true }
]
}
]
]
}
License
MIT
npm i @svgr/babel-plugin-replace-jsx-attribute-value
Metadata
- MIT
- >=14
- Greg Bergé
- released 5/9/2023