Socket
Socket
Sign inDemoInstall

babel-plugin-react-icons

Package Overview
Dependencies
9
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-plugin-react-icons

Modular react-icons builds without the hassle.


Version published
Weekly downloads
219
increased by7.88%
Maintainers
1
Install size
1.00 MB
Created
Weekly downloads
 

Readme

Source

babel-plugin-react-icons

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

Install

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

Example

Transforms

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

roughly to

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
{
  "plugins": ["babel-plugin-react-icons"]
}

FAQs

Last updated on 26 Nov 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc