# babel-plugin-react-icons

> Modular react-icons builds without the hassle.

Latest version **0.1.1** (published 2020-11-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-react-icons
pnpm add babel-plugin-react-icons
yarn add babel-plugin-react-icons
bun add babel-plugin-react-icons
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2020-11-26 |
| First published | 2020-11-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ward Peeters |
| Maintainers | wardpeet |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-react-icons
- npm.io page: https://npm.io/package/babel-plugin-react-icons

## Dependencies (1)

- [@babel/helper-module-imports](https://npm.io/package/@babel/helper-module-imports.md) ^7.12.5

## Recent versions

- 0.1.1 (latest) — 2020-11-26
- 0.1.0 — 2020-11-26
- 0.0.1 — 2020-11-18

## README

# babel-plugin-react-icons

A simple transform to cherry-pick react-icons modules so you don’t have to.

## Install

```shell
$ npm i --save @react-icons/all-files
$ npm i --save-dev babel-plugin-react-icons
```

## Example

Transforms

```js
import { Fa500Px, FaAccessibleIcon, FaAccusoft } from 'react-icons/fa';
```

roughly to

```js
import { FaAccusoft as _FaAccusoft } from '@react-icons/all-files/fa/FaAccusoft.esm.js';
import { FaAccessibleIcon as _FaAccessibleIcon } from '@react-icons/all-files/fa/FaAccessibleIcon.esm.js';
import { Fa500Px as _Fa500Px } from '@react-icons/all-files/fa/Fa500Px.esm.js';
```

## Usage

###### .babelrc

```json
{
  "plugins": ["babel-plugin-react-icons"]
}
```

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