{"library":"babel-plugin-react-svg","type":"library","category":null,"description":"Babel plugin that transforms SVG files into React components. Version 3.0.3 is the current stable release, with no active development since 2019. It works by running SVGO optimization followed by a Babel transform to produce a component that renders the SVG as JSX. Key differentiators: integrates with webpack via react-svg-loader, supports SVGO options, and outputs functional components. Alternatives like @svgr/webpack offer more features and are actively maintained.","language":"javascript","status":"maintenance","version":"3.0.3","tags":["javascript","babel","babel-plugin","react","react-svg-loader","svg","webpack","webpack-loader"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-react-svg","imports":["import plugin from 'babel-plugin-react-svg'","\"plugins\": [\"babel-plugin-react-svg\"]","[\"babel-plugin-react-svg\", { \"svgo\": true, \"expandProps\": \"start\" }]"]},{"cmd":"yarn add babel-plugin-react-svg","imports":[]},{"cmd":"pnpm add babel-plugin-react-svg","imports":[]}],"homepage":null,"github":"https://github.com/boopathi/react-svg-loader","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-react-svg","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-react-svg/compatibility"}}