Webpack
@svgr/webpack
SVGR webpack loader.
Icons
svgr
svg
react
webpack
webpack-loader
@svgr/webpack
Icons
javascript
npm
frontend
Stars
1
Weekly
0
Open issues
0
Bundle
~60 kB
Installation
npm install @svgr/webpackCode example
import { Star } from "@svgr/webpack";
export function Example() {
return <Star size={24} />;
}Pros & cons
Pros
- Actively maintained by Greg Bergé
- 0 weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~60 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 0 open issues on GitHub