[skip ci] removed shorthand usage of official babel scoped presets & plugins from README.md's (#6820)

This commit is contained in:
Steven Hargrove
2017-11-16 22:51:23 -05:00
committed by Henry Zhu
parent 39dae28d5c
commit cee9ae48e0
101 changed files with 381 additions and 381 deletions

View File

@@ -34,7 +34,7 @@ Without options:
```json
{
"plugins": ["@babel/transform-spread"]
"plugins": ["@babel/plugin-transform-spread"]
}
```
@@ -43,7 +43,7 @@ With options:
```json
{
"plugins": [
["@babel/transform-spread", {
["@babel/plugin-transform-spread", {
"loose": true
}]
]
@@ -53,14 +53,14 @@ With options:
### Via CLI
```sh
babel --plugins @babel/transform-spread script.js
babel --plugins @babel/plugin-transform-spread script.js
```
### Via Node API
```javascript
require("@babel/core").transform("code", {
plugins: ["@babel/transform-spread"]
plugins: ["@babel/plugin-transform-spread"]
});
```