Skip to content

Commit

Permalink
feat: support babel 7 (#24)
Browse files Browse the repository at this point in the history
* feat: support babel 7

* Update README.md
  • Loading branch information
NECO authored and QingWei-Li committed Dec 19, 2017
1 parent b43f70a commit f67915d
Show file tree
Hide file tree
Showing 45 changed files with 4,928 additions and 464 deletions.
23 changes: 13 additions & 10 deletions README.md
@@ -1,13 +1,16 @@
# babel-plugin-component

[![NPM version](https://img.shields.io/npm/v/babel-plugin-component.svg)](https://npmjs.org/package/babel-plugin-component)
[![Build Status](https://travis-ci.org/QingWei-Li/babel-plugin-component.svg?branch=master)](https://travis-ci.org/QingWei-Li/babel-plugin-component)
[![Build Status](https://travis-ci.org/ElementUI/babel-plugin-component.svg?branch=master)](https://travis-ci.org/ElementUI/babel-plugin-component)
[![Coverage Status](https://coveralls.io/repos/github/QingWei-Li/babel-plugin-component/badge.svg?branch=master)](https://coveralls.io/github/QingWei-Li/babel-plugin-component?branch=master)

## Install

```shell
npm install babel-plugin-component --save-dev
npm i babel-plugin-component -D

# For babel6
npm i babel-plugin-component@0 -D
```

## Example
Expand Down Expand Up @@ -54,16 +57,16 @@ Via `.babelrc` or babel-loader.
## Multiple Module
```javascript
{
"plugins": [xxx, ["component", [
{
libraryName: 'antd',
"plugins": [xxx,
["component", {
libraryName: "antd",
style: true,
},
{
libraryName: 'test-module',
}, "antd"],
["component", {
libraryName: "test-module",
style: true,
}
]]]
}, "test-module"]
]
}
```

Expand Down

0 comments on commit f67915d

Please sign in to comment.