[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
@@ -30,20 +30,20 @@ npm install --save-dev @babel/plugin-transform-react-jsx-self
|
||||
|
||||
```json
|
||||
{
|
||||
"plugins": ["@babel/transform-react-jsx-self"]
|
||||
"plugins": ["@babel/plugin-transform-react-jsx-self"]
|
||||
}
|
||||
```
|
||||
|
||||
### Via CLI
|
||||
|
||||
```sh
|
||||
babel --plugins @babel/transform-react-jsx-self script.js
|
||||
babel --plugins @babel/plugin-transform-react-jsx-self script.js
|
||||
```
|
||||
|
||||
### Via Node API
|
||||
|
||||
```javascript
|
||||
require("@babel/core").transform("code", {
|
||||
plugins: ["@babel/transform-react-jsx-self"]
|
||||
plugins: ["@babel/plugin-transform-react-jsx-self"]
|
||||
});
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user