# @rsbuild/plugin-svgr

> SVGR plugin for Rsbuild

Latest version **2.0.5** (published 2026-07-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @rsbuild/plugin-svgr
pnpm add @rsbuild/plugin-svgr
yarn add @rsbuild/plugin-svgr
bun add @rsbuild/plugin-svgr
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.0.5 |
| Published | 2026-07-02 |
| First published | 2023-10-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 6 |
| Unpacked size | 14.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 3381 |
| Maintainers | chenjiahan, hardfist3 |

## Links

- npm: https://www.npmjs.com/package/@rsbuild/plugin-svgr
- Repository: https://github.com/web-infra-dev/rsbuild
- Homepage: https://rsbuild.rs
- Issues: https://github.com/web-infra-dev/rsbuild/issues
- npm.io page: https://npm.io/package/@rsbuild/plugin-svgr

## Dependencies (6)

- [deepmerge](https://npm.io/package/deepmerge.md) ^4.3.1
- [@svgr/core](https://npm.io/package/@svgr/core.md) 8.1.0
- [loader-utils](https://npm.io/package/loader-utils.md) ^3.3.1
- [@svgr/plugin-jsx](https://npm.io/package/@svgr/plugin-jsx.md) 8.1.0
- [@svgr/plugin-svgo](https://npm.io/package/@svgr/plugin-svgo.md) 8.1.0
- [@rsbuild/plugin-react](https://npm.io/package/@rsbuild/plugin-react.md) ^2.0.0

## Recent versions

- 2.0.5 (latest) — 2026-07-02
- 2.0.0-rc.4 (rc) — 2026-04-17
- 2.0.0-alpha.3 (alpha) — 2026-01-26
- 0.0.0-next-20240729023126 (next) — 2024-07-29
- 0.7.0-beta.9 (beta) — 2024-05-24
- 0.0.0-nightly-20240114070311 (nightly) — 2024-01-14
- 2.0.4 — 2026-06-16
- 2.0.3 — 2026-05-30
- 2.0.2 — 2026-05-01
- 2.0.1 — 2026-04-22
- 2.0.0 — 2026-04-22
- 2.0.0-rc.3 — 2026-04-14
- 2.0.0-rc.2 — 2026-04-09
- 1.3.1 — 2026-03-11
- 1.3.0 — 2026-01-27
- … 215 more at https://npm.io/package/@rsbuild/plugin-svgr/versions

## README

# @rsbuild/plugin-svgr

An Rsbuild plugin to use SVGR to transform SVG to React components via SVGR.

<p>
  <a href="https://npmjs.com/package/@rsbuild/plugin-svgr">
   <img src="https://img.shields.io/npm/v/@rsbuild/plugin-svgr?style=flat-square&colorA=564341&colorB=EDED91" alt="npm version" />
  </a>
  <img src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square&colorA=564341&colorB=EDED91" alt="license" />
  <a href="https://npmcharts.com/compare/@rsbuild/plugin-svgr"><img src="https://img.shields.io/npm/dm/@rsbuild/plugin-svgr.svg?style=flat-square&colorA=564341&colorB=EDED91" alt="downloads" /></a>
</p>

## Documentation

See [Documentation](https://rsbuild.rs/plugins/list/plugin-svgr).

## License

[MIT](https://github.com/web-infra-dev/rsbuild/blob/main/LICENSE).

---
_Source: https://npm.io/package/@rsbuild/plugin-svgr · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
