1.0.3 • Published 8 years ago

cherry-pick-babel-plugin-generator v1.0.3

Weekly downloads
1
License
MIT
Repository
-
Last release
8 years ago

cherry-pick-babel-plugin-generator

A babel cherry-pick plugin generator help you generate a babel plugin which can import less modules.

npm version build status npm downloads

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

MIT

Copyright (c) 2015-2016 Recharts Group