add babel-plugin-syntax-function-sent plugin
This commit is contained in:
35
packages/babel-plugin-syntax-function-sent/README.md
Normal file
35
packages/babel-plugin-syntax-function-sent/README.md
Normal file
@@ -0,0 +1,35 @@
|
||||
# babel-plugin-syntax-function-sent
|
||||
|
||||
Allow parsing of the `function.sent` meta property.
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
$ npm install babel-plugin-syntax-function-sent
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
### Via `.babelrc` (Recommended)
|
||||
|
||||
**.babelrc**
|
||||
|
||||
```json
|
||||
{
|
||||
"plugins": ["syntax-function-sent"]
|
||||
}
|
||||
```
|
||||
|
||||
### Via CLI
|
||||
|
||||
```sh
|
||||
$ babel --plugins syntax-function-sent script.js
|
||||
```
|
||||
|
||||
### Via Node API
|
||||
|
||||
```javascript
|
||||
require("babel-core").transform("code", {
|
||||
plugins: ["syntax-function-sent"]
|
||||
});
|
||||
```
|
||||
Reference in New Issue
Block a user