Merge pull request #2696 from shuhei/fix-external-helpers-2-readme
Fix plugin names in the README of babel-plugin-external-helpers-2
This commit is contained in:
commit
22fb054a7a
@ -14,20 +14,20 @@ $ npm install babel-plugin-external-helpers-2
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"plugins": ["external-helpers"]
|
"plugins": ["external-helpers-2"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Via CLI
|
### Via CLI
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ babel --plugins external-helpers script.js
|
$ babel --plugins external-helpers-2 script.js
|
||||||
```
|
```
|
||||||
|
|
||||||
### Via Node API
|
### Via Node API
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
require("babel-core").transform("code", {
|
require("babel-core").transform("code", {
|
||||||
plugins: ["external-helpers"]
|
plugins: ["external-helpers-2"]
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user