GT2/GT2-Android/node_modules/babel-plugin-syntax-export-.../README.md

36 lines
474 B
Markdown
Raw Normal View History

# babel-plugin-syntax-export-extensions
Allow parsing of export extensions.
## Installation
```sh
$ npm install babel-plugin-syntax-export-extensions
```
## Usage
### Via `.babelrc` (Recommended)
**.babelrc**
```json
{
"plugins": ["syntax-export-extensions"]
}
```
### Via CLI
```sh
$ babel --plugins syntax-export-extensions script.js
```
### Via Node API
```javascript
require("babel-core").transform("code", {
plugins: ["syntax-export-extensions"]
});
```