tahamajs/Other_Lessons / AP /TA_1 /AP-ECE-UT.github.io /node_modules /@svgr /babel-plugin-replace-jsx-attribute-value
6.69 GB
45,738 files
Updated about 2 months ago
Name
Size
dist
LICENSE1.05 kB
xet
README.md457 Bytes
xet
package.json1.06 kB
xet
README.md

@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

Total size
6.69 GB
Files
45,738
Last updated
Sep 12
Pre-warmed CDN
US EU US EU

Contributors