move some babel-plugins into the main repo

This commit is contained in:
Sebastian McKenzie
2015-09-01 06:58:53 +01:00
parent f33c96c276
commit 9f9d9cd84b
61 changed files with 1779 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
# babel-plugin-react-constant-elements
Treat React JSX elements as value types and hoist them to the highest scope
## Installation
```sh
$ npm install babel-plugin-react-constant-elements
```
## Usage
### Via `.babelrc` (Recommended)
**.babelrc**
```json
{
"plugins": ["react-constant-elements"]
}
```
### Via CLI
```sh
$ babel --plugins react-constant-elements script.js
```
### Via Node API
```javascript
require("babel-core").transform("code", {
plugins: ["react-constant-elements"]
});
```