Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

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.