[skip ci] removed shorthand usage of official babel scoped presets & plugins from README.md's (#6820)
This commit is contained in:
committed by
Henry Zhu
parent
39dae28d5c
commit
cee9ae48e0
@@ -16,20 +16,20 @@ npm install --save-dev @babel/plugin-syntax-decorators
|
||||
|
||||
```json
|
||||
{
|
||||
"plugins": ["@babel/syntax-decorators"]
|
||||
"plugins": ["@babel/plugin-syntax-decorators"]
|
||||
}
|
||||
```
|
||||
|
||||
### Via CLI
|
||||
|
||||
```sh
|
||||
babel --plugins @babel/syntax-decorators script.js
|
||||
babel --plugins @babel/plugin-syntax-decorators script.js
|
||||
```
|
||||
|
||||
### Via Node API
|
||||
|
||||
```javascript
|
||||
require("@babel/core").transform("code", {
|
||||
plugins: ["@babel/syntax-decorators"]
|
||||
plugins: ["@babel/plugin-syntax-decorators"]
|
||||
});
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user