cherry-pick-babel-plugin-generator
v1.0.3
Published
A babel cherry-pick plugin generator help you generate a babel plugin which can import less modules.
Downloads
3
Maintainers
Readme
cherry-pick-babel-plugin-generator
A babel cherry-pick plugin generator help you generate a babel plugin which can import less modules.
install
$ npm i -D cherry-pick-babel-plugin-generator
Usage
babel-plugin-recharts
import pluginGenerator from 'cherry-pick-babel-plugin-generator';
const rechartsMap = {
Line: 'recharts/cartesian/Line',
Pie: 'recharts/polar/Pie',
...
}
export deafult pluginGenerator({ recharts: rechartsMap });
Limitations
- You must use ES2015 imports to load module
License
Copyright (c) 2015-2016 Recharts Group