jurerotar

jurerotar/react-icons-sprite

A lightweight Vite, Webpack and Rsbuild plugin for react-icons that builds a single SVG sprite and rewrites icons to <use>, reducing bundle size and runtime overhead.

TypeScript
10
0
MIT License

This is a build-time optimization plugin for React icon libraries that converts individual icon components into a single SVG sprite sheet, replacing inline SVG trees with lightweight `<use>` references. It supports popular icon packs like react-icons, lucide-react, heroicons, and more, significantly reducing bundle size and improving runtime performance by minimizing React's DOM reconciliation overhead. The plugin works with Vite, Webpack, and Rsbuild, making it ideal for developers using React icon libraries who want better performance in production builds.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

jurerotar's profile
jurerotar
20 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet