wmira / react-icons-kit

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

Allow commonjs exports style #1

Closed wmira closed 7 years ago

wmira commented 7 years ago

At the moment the only way to use and provide dead code elimination and tree shaking is via including the dependency via the bundler. Most of the time node_modules is excluded.

Provide a way to have an es6 folder and make use of jsnext:main. We should be able to have the icons under the specific dir e.g. icomoon/home.js which would have imports be in the current format

import { home } from 'react-reacticons/icomoon/home';

a bundle would then be just using the code it needs.