cherry-pick-babel-plugin-generator

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i cherry-pick-babel-plugin-generator

Weekly Downloads

0

Version

1.0.3

License

MIT

Last publish

Collaborators

  • hzongquan