wmira / react-icons-kit

React Svg Icons
https://react-icons-kit.vercel.app/
MIT License
370 stars 44 forks source link

Publish an es6 module or default to es6 style module #4

Closed wmira closed 6 years ago

wmira commented 7 years ago

At the moment we need to do import one at a time to prevent a whole import of the icon tree. We should export an es6 version to have it easier to use if users are using bundlers like webpack 2 that supports tree shaking

target:

import { someIcon1, someIcon 2} from 'react-icons-kit/es6/md'

The above works like

import { someIcon1 } from 'react-icons-kit/md/someIcon'
import { someIcon2 } from 'react-icons-kit/md/someIcon'