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.
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.