<commit_before># babel-plugin-recharts

A babel plugin help you import less Recharts modules.

[![npm version](https://badge.fury.io/js/babel-plugin-recharts.png)](https://badge.fury.io/js/babel-plugin-recharts)
[![build status](https://travis-ci.org/recharts/babel-plugin-recharts.svg)](https://travis-ci.org/recharts/babel-plugin-recharts)
[![npm downloads](https://img.shields.io/npm/dt/babel-plugin-recharts.svg?style=flat-square)](https://www.npmjs.com/package/babel-plugin-recharts)


## install
```
$ npm i -D babel-plugin-recharts
```

## Example

from

```
import { Line, Pie, Treemap } from 'recharts';
```

to

```
import Treemap from 'recharts/chart/Treemap';
import Pie from 'recharts/polar/Pie';
import Line from 'recharts/cartesian/Line';
```

## Usage

### .babelrc

```js
{
  "plugins": ["recharts"],
  "presets": ["es2015"]
}
```


### webpack.config.js

```
'module': {<commit_msg>fix: add highlight on README<commit_after># babel-plugin-recharts

A babel plugin help you import less Recharts modules.

[![npm version](https://badge.fury.io/js/babel-plugin-recharts.png)](https://badge.fury.io/js/babel-plugin-recharts)
[![build status](https://travis-ci.org/recharts/babel-plugin-recharts.svg)](https://travis-ci.org/recharts/babel-plugin-recharts)
[![npm downloads](https://img.shields.io/npm/dt/babel-plugin-recharts.svg?style=flat-square)](https://www.npmjs.com/package/babel-plugin-recharts)

## install

```sh
$ npm i -D babel-plugin-recharts
```

## Example

from

```jsx
import { Line, Pie, Treemap } from 'recharts';
```

to

```jsx
import Treemap from 'recharts/chart/Treemap';
import Pie from 'recharts/polar/Pie';
import Line from 'recharts/cartesian/Line';
```

## Usage

### .babelrc

```js
{
  "plugins": ["recharts"],
  "presets": ["es2015"]
}
```


### webpack.config.js

```js
'module': {
{'fraction_non_alphanumeric': 0.2021917808219178, 'fraction_numerical': 0.004383561643835616, 'mean_word_length': 4.724137931034483, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3032139', 'n_tokens_mistral': 777, 'n_tokens_neox': 677, 'n_words': 112}