Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kazijawad/esbuild-plugin-svgr
An esbuild plugin for importing SVGs as React components.
https://github.com/kazijawad/esbuild-plugin-svgr
esbuild esbuild-plugin react svgr
Last synced: 6 days ago
JSON representation
An esbuild plugin for importing SVGs as React components.
- Host: GitHub
- URL: https://github.com/kazijawad/esbuild-plugin-svgr
- Owner: kazijawad
- License: mit
- Created: 2021-01-24T20:11:58.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-15T07:08:13.000Z (3 months ago)
- Last Synced: 2025-02-01T03:15:51.567Z (14 days ago)
- Topics: esbuild, esbuild-plugin, react, svgr
- Language: JavaScript
- Homepage: https://npmjs.com/package/esbuild-plugin-svgr
- Size: 156 KB
- Stars: 36
- Watchers: 1
- Forks: 13
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-list - esbuild-plugin-svgr
- awesome-esbuild - esbuild-plugin-svgr
README
# esbuild-plugin-svgr
A plugin for [esbuild](https://github.com/evanw/esbuild) that adds support for `*.svg` file imports as React components.
The plugin is built on top of [SVGR](https://github.com/gregberge/svgr).## Installation
The plugin can be installed using [npm](https://www.npmjs.com).
```bash
npm i -D esbuild-plugin-svgr
```## Basic Usage
Please reference the [example](example/) directory for basic usage.
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.