{"id":26447307,"url":"https://github.com/gitim/react-app-rewire-svgr","last_synced_at":"2025-08-30T17:10:07.555Z","repository":{"id":48033270,"uuid":"117115554","full_name":"gitim/react-app-rewire-svgr","owner":"gitim","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-07T19:02:26.000Z","size":203,"stargazers_count":7,"open_issues_count":7,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-15T04:33:35.099Z","etag":null,"topics":["create-react-app","react","react-app-rewired","svgr","webpack"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gitim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-11T15:03:35.000Z","updated_at":"2023-06-07T11:14:58.000Z","dependencies_parsed_at":"2023-01-24T20:30:51.073Z","dependency_job_id":null,"html_url":"https://github.com/gitim/react-app-rewire-svgr","commit_stats":null,"previous_names":["gitim/react-app-rewire-svgr-loader"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/gitim/react-app-rewire-svgr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitim%2Freact-app-rewire-svgr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitim%2Freact-app-rewire-svgr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitim%2Freact-app-rewire-svgr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitim%2Freact-app-rewire-svgr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitim","download_url":"https://codeload.github.com/gitim/react-app-rewire-svgr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitim%2Freact-app-rewire-svgr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272878320,"owners_count":25008336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["create-react-app","react","react-app-rewired","svgr","webpack"],"created_at":"2025-03-18T13:51:42.382Z","updated_at":"2025-08-30T17:10:07.497Z","avatar_url":"https://github.com/gitim.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-app-rewire-svgr\n\nAdd [SVGR](https://github.com/smooth-code/svgr) loader to your [create-react-app](https://github.com/facebookincubator/create-react-app) via [react-app-rewired](https://github.com/timarney/react-app-rewired).\n\n## Installation\n\n```\nyarn add --dev react-app-rewire-svgr\n```\n\nOR\n\n```\nnpm install --save-dev react-app-rewire-svgr\n```\n\n## Usage\nIn your react-app-rewired configuration:\n```js\n/* config-overrides.js */\n\nconst rewireSVGR = require('react-app-rewire-svgr');\n\nmodule.exports = function override(config, env) {\n    // ...\n    config = rewireSVGR(config, env);\n    // ...\n    return config;\n}\n```\nIn your React application:\n```js\nimport starUrl, { ReactComponent as Star } from './star.svg'\n\nconst App = () =\u003e (\n  \u003cdiv\u003e\n    \u003cStar /\u003e\n  \u003c/div\u003e\n)\n```\n\nAlso you can pass options to svgr webpack loader via third parameter\n```js\n/* config-overrides.js */\n\nconst rewireSVGR = require('react-app-rewire-svgr');\n\nmodule.exports = function override(config, env) {\n    // ...\n    config = rewireSVGR(config, env, { svgo: false });\n    // ...\n    return config;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitim%2Freact-app-rewire-svgr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitim%2Freact-app-rewire-svgr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitim%2Freact-app-rewire-svgr/lists"}