{"_id":"@arco-plugins/vite-plugin-svgr","_rev":"10-20a10fd844225d4cf8ac2a555e35fcb5","name":"@arco-plugins/vite-plugin-svgr","dist-tags":{"latest":"0.7.2"},"versions":{"0.7.0":{"name":"@arco-plugins/vite-plugin-svgr","version":"0.7.0","keywords":["vite","vite-plugin"],"author":{"name":"Rongjian Zhang"},"license":"MIT","_id":"@arco-plugins/vite-plugin-svgr@0.7.0","maintainers":[{"name":"pjy","email":"731401082@qq.com"}],"homepage":"https://github.com/PengJiyuan/vite-plugin-svgr#readme","bugs":{"url":"https://github.com/PengJiyuan/vite-plugin-svgr/issues"},"dist":{"shasum":"bcdf079606ec36f10d6b3cc636f31769e2b50185","tarball":"https://registry.npmjs.org/@arco-plugins/vite-plugin-svgr/-/vite-plugin-svgr-0.7.0.tgz","fileCount":6,"integrity":"sha512-/UkoSsSwF3d18E4437mWCrist6XL5mzSA1rGVKLtxy7aUdQIyzcVmRaX6F7PHnM+IofOjrNI3LBpJSYt0QZG+w==","signatures":[{"sig":"MEUCIQClKX+CQv7r2SCQaB3hTYd2PsWiy1CvrxXqKzniHlK/iAIgI6xxQsptr6X8AprkIiHaAL9dqEFXl+H0h4Ws5aHKvgI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpxmuCRA9TVsSAnZWagAAoHQP/Rmp1StqiFYZlvq8Tgij\nQTcKVeTxkvsC4WZ5Zw6lRzu17Jlmi9mIDFotd47gXAJaPYgfVtYD582nxVkJ\nFPHV6NaUOb8YobIMzXlVIurEgbVLSPtft22865loxB6999NYfHtUwCIrkt1Q\noN9il9g47vhgCuKy57JBjj3tWztQAUqLKngRQwQDYEHC1S4rpsEd/uBeRy+p\nNUhcQ1Xz14C8rwfD/1KzHX4zE3V002Bvwynj+BYcOamoiw8Q/RLr2f3D9MI9\n3xsTiQefrjdIpR3YVedrFPZEsQdlmrIJ17V7v20O4Feu5Ah0ne196pOhnxlW\n4KbDOJTp7IbSQ9o87WCgICWBo086aKhkuLwBhFoZoDmou6pQSO+m94rn73fi\nmQG5PY2g8zGsbWVQfQJ7/UvFCtgRwrvLVFA2FbH3mJZB9HzqbuI7pLMFv+by\nHc9q6VKP49tNPV1Mm9tVCFTQyq1RWogE/a2sNFK0M+SfCSWCX3/6tRRE93Tc\nASoTCrxKBdnfBzptwC3+GHiriBflqUhB1Blb/iRZOWrjAkn+DpKfTWvB+Fwa\n8eiRVxyMPjYGr5v34wWeACwmbTbFROaAatM82FQWbdbKDnQPGJCUtHpghkwD\nufrbu6sXar21Jj5cLq1vcNFVPvQEQBPVBILPOW4y5ClXqf7J35kuVjytnzJU\nPasR\r\n=BhSz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"./lib/index.d.ts","gitHead":"39889c04fbcac2c5914cfc7805a8633063d4001c","scripts":{"dev":"tsc --watch","build":"tsc","prepublish":"npm run build"},"_npmUser":{"name":"pjy","email":"731401082@qq.com"},"repository":{"url":"git+https://github.com/PengJiyuan/vite-plugin-svgr.git","type":"git"},"_npmVersion":"8.1.0","description":"Vite plugin to transform SVGs into React components","directories":{},"_nodeVersion":"16.13.0","dependencies":{"@svgr/core":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^2.6.13","typescript":"^4.4.4","@types/node":"^16.11.6"},"peerDependencies":{"vite":"^2.6.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-svgr_0.7.0_1638341037984_0.06734858144619804","host":"s3://npm-registry-packages"}},"0.7.1":{"name":"@arco-plugins/vite-plugin-svgr","version":"0.7.1","keywords":["vite","vite-plugin"],"author":{"name":"Rongjian Zhang"},"license":"MIT","_id":"@arco-plugins/vite-plugin-svgr@0.7.1","maintainers":[{"name":"kiraxy","email":"kirazxyun@gmail.com"},{"name":"jinghm318","email":"jinghm318@gmail.com"},{"name":"pjy","email":"731401082@qq.com"}],"homepage":"https://github.com/PengJiyuan/vite-plugin-svgr#readme","bugs":{"url":"https://github.com/PengJiyuan/vite-plugin-svgr/issues"},"dist":{"shasum":"f34104b2e8168b11fe7251c268aeb96a3224d800","tarball":"https://registry.npmjs.org/@arco-plugins/vite-plugin-svgr/-/vite-plugin-svgr-0.7.1.tgz","fileCount":6,"integrity":"sha512-onGWD1N+iy+o4gDDdMl2egqsqdDRmI3JhgJufDmT9TITOJB83PoH7Wx46c9wugJ3Y/Dxftc3HKGPgpQRuUj+tw==","signatures":[{"sig":"MEUCICEuNf1e0XajmRkkRNux1zyFUDTR9FnqMsaNjsOizVAUAiEA8SXmWAl95MEQcOjps98JzS+ejt19464TbvfCLHlE2UQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpyDNCRA9TVsSAnZWagAA+awP/2bK3yLMK35m71ttMBds\n+NOCiXSJmruaA9kvG6dW1j1Ew86zfJRVyzSHCiJKSQhVmTczWZ7PW3YVgGu0\n3tLrW28soaBbx/HN/TJl8WGbDFYlWhLE1TRZP+qniy1knpJ1lzt3OFO7zTEP\nisOXVIwMX0k5/0twz5i0hCmaC1ax8y0QdUB4Oz8rmhmu+KtADlvMwtBOxh1V\nighPG3vg1zNrdehb54augULgap9lsrnu/JXzIEiAki3HxCV09T//qsrCEfZk\nKvWbpCg009PW7Ms/DAnJGzq/FPzxV4P7rXwsjJX/RK2LhXLOJNpmveJHlD3C\n2aGian0ubZZzEP6NYoWJyDURfJfYeGd16xffnmQto0rMkzJwv30jrt0IcraF\nYb1xNST3s4x1S7tLZUu2kZxznJJIUN6dF53CsZM77hemlLV1KsCXfxG6tpkw\nb15MdVyfO4c1RUi0N62ptYS3KF6Oy8Iyka6GA7U4QafsGzLP2rnTl4brCb5p\nB9IFtCSox4+Y3iIc7EHQRcCe5OcIhhf449+y8nzPj30Zfu3qM4D1mBXs9n9k\nZs3dd4T5dfBnf8QTqJkORqs07mbUvOix9r7p6udGX//RFJZXz2KNbsLFPkKw\n5wdgCEfQ7CLwy8tzHJ8vS85zPZesclO2+ugZvwUX1Dmv6ch4tk1wHhQFjQRT\nfwpg\r\n=Cj7o\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"./lib/index.d.ts","gitHead":"f0f8d3fcebc47ae1487a814b3a514c6eb29da428","scripts":{"dev":"tsc --watch","build":"tsc","prepublish":"npm run build"},"_npmUser":{"name":"pjy","email":"731401082@qq.com"},"repository":{"url":"git+https://github.com/PengJiyuan/vite-plugin-svgr.git","type":"git"},"_npmVersion":"8.1.0","description":"Vite plugin to transform SVGs into React components","directories":{},"_nodeVersion":"16.13.0","dependencies":{"@svgr/core":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^2.6.13","typescript":"^4.4.4","@types/node":"^16.11.6"},"peerDependencies":{"vite":"^2.6.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-svgr_0.7.1_1638342861623_0.2401627147334484","host":"s3://npm-registry-packages"}},"0.7.2":{"name":"@arco-plugins/vite-plugin-svgr","version":"0.7.2","keywords":["vite","vite-plugin"],"author":{"name":"Rongjian Zhang"},"license":"MIT","_id":"@arco-plugins/vite-plugin-svgr@0.7.2","maintainers":[{"name":"kiraxy","email":"kirazxyun@gmail.com"},{"name":"jinghm318","email":"jinghm318@gmail.com"},{"name":"pjy","email":"731401082@qq.com"}],"homepage":"https://github.com/PengJiyuan/vite-plugin-svgr#readme","bugs":{"url":"https://github.com/PengJiyuan/vite-plugin-svgr/issues"},"dist":{"shasum":"e9bdb82cc7f0bc1c9ab58dfc9412353aed978e5e","tarball":"https://registry.npmjs.org/@arco-plugins/vite-plugin-svgr/-/vite-plugin-svgr-0.7.2.tgz","fileCount":6,"integrity":"sha512-oDhLSB6Q++NQWNCSRqSC4rGQkqPejtBqmgqdyLoD3lcq5dsf1qkY15vXSd4TB56yptSTPdUIZx/sE6130mZf8w==","signatures":[{"sig":"MEUCIFurzA7eRIHqfDp7FWSs90QraNpMXaN43enaGNt7VuepAiEA2G9P4qkTt9JA4FKFrWjE6BQkGPFm7dmRUg6ZMUqCoeU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5429,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpyXRCRA9TVsSAnZWagAAt6kP/08IKM7RT+kYvSO+Ese5\nUOr1xKyOzrXeVQ+4VXyN5pUMndY1Za5dc6zIBlXevUw/S1whE4JkpnOP8GqW\neQUKXJumPIXHwwJBpbyVo3ziUnjoZbbbIV2Oh44d0TjNWeDq7NniOijsarfA\n8SsT7ZSx0rvin0IzF71mHbNeFWCODkIkdaLjLtdWUXkOPE7oRnQJbZ9Wul6e\n+qvpUdpOx5BcG0Kcppzl5b/+ZDpI8edHvV3nS14vHg/RKn0jZqk3ocz3KtOg\nRDpFnS2E0ZJ+zWkrl1q2HLejrkWPmO/h6xrhjhfbJRdIxqsUXOQqG9aY1vCy\n1if/MZ9pQqQWL9lucjvyiAJ5KBxoU/eXkZHtW9Qb/dUo/lSZXoNzzUhYzPSK\nrGB52yq1gmd0fGFW0pfqkbFBnz/C7sI/gZ4YpUrtuWN1HGhJMxaYqNueM8DO\nZ/a0roGFvtg0Vo1e7K5+LROXgokOJC63CnL9s0h0KOILef/tGRxqVJCMFY8M\nSUGK92vX5PEgmO2h49tQGxHMG5sXICkMmelA3nU8ElKsiw/TiOZj9NITG3HY\nH9anafDl5TprH0vjuYj0fn2zv3tG7s4VADhQHSw+l9PYPpyc4XApZUpOd0E6\n6/eB4N2WtxK/FW9RxdiZYUhwLmw0Nqi/ZeH7/zcMLY2ast7i6lgDDcWcrwx6\nFtk7\r\n=MsEw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"./lib/index.d.ts","gitHead":"af24cb6155308fbf10578a3b3c2c5792daa2ec66","scripts":{"dev":"tsc --watch","build":"tsc","prepublish":"npm run build"},"_npmUser":{"name":"pjy","email":"731401082@qq.com"},"repository":{"url":"git+https://github.com/PengJiyuan/vite-plugin-svgr.git","type":"git"},"_npmVersion":"8.1.0","description":"Vite plugin to transform SVGs into React components","directories":{},"_nodeVersion":"16.13.0","dependencies":{"@svgr/core":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^2.6.13","typescript":"^4.4.4","@types/node":"^16.11.6"},"peerDependencies":{"vite":"^2.6.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-svgr_0.7.2_1638344145556_0.9193605441609305","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-12-01T06:43:57.935Z","modified":"2026-04-16T11:46:53.501Z","0.7.0":"2021-12-01T06:43:58.114Z","0.7.1":"2021-12-01T07:14:21.764Z","0.7.2":"2021-12-01T07:35:45.721Z"},"bugs":{"url":"https://github.com/PengJiyuan/vite-plugin-svgr/issues"},"author":{"name":"Rongjian Zhang"},"license":"MIT","homepage":"https://github.com/PengJiyuan/vite-plugin-svgr#readme","keywords":["vite","vite-plugin"],"repository":{"url":"git+https://github.com/PengJiyuan/vite-plugin-svgr.git","type":"git"},"description":"Vite plugin to transform SVGs into React components","maintainers":[{"email":"731401082@qq.com","name":"pjy"},{"email":"jinghm318@gmail.com","name":"jinghm318"},{"email":"yinkaihui0828@163.com","name":"yinkaihui"},{"email":"flsion@outlook.com","name":"flsion"},{"email":"741779880@qq.com","name":"lyspro"}],"readme":"# vite-plugin-svgr\n\n[![npm](https://img.shields.io/npm/v/@arco-plugins/vite-plugin-svgr.svg)](https://www.npmjs.com/package/@arco-plugins/vite-plugin-svgr)\n\nVite plugin to transform SVGs into React components. Uses [svgr](https://github.com/gregberge/svgr) under the hood.\n\n## Usage\n\n```js\n// vite.config.js\nimport svgrPlugin from '@arco-plugins/vite-plugin-svgr'\n\nexport default {\n  // ...\n  plugins: [\n    svgrPlugin({\n      svgrOptions: {\n        icon: true,\n        // ...svgr options (https://react-svgr.com/docs/options/)\n      },\n    }),\n  ],\n}\n```\n\nThen SVG files can be imported as React components, just like [create-react-app](https://create-react-app.dev/docs/adding-images-fonts-and-files#adding-svgs) does:\n\n```js\nimport Logo from './logo.svg'\n// or\nimport { ReactComponent as Logo } from './logo.svg'\n```\n\nIf you are using TypeScript, `vite-plugin-svgr/client` can be added to `tsconfig.json`:\n\n```json\n{\n  // ...\n  \"compilerOptions\": {\n    // ...\n    \"types\": [\"vite-plugin-svgr/client\"]\n  }\n}\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}