Skip to content

Commit 6f573fb

Browse files
committed
fixing config documentation
1 parent 63e9ce0 commit 6f573fb

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,24 @@ This can be particularly useful if you want to switch certain statics on/off for
1515
{
1616
"env": {
1717
"production": {
18-
"plugins": ["transform-react-remove-statics", {
19-
"propTypes": true
20-
}]
18+
"plugins": [
19+
["transform-react-remove-statics", {
20+
"propTypes": true
21+
}]
22+
]
23+
}
2124
}
2225
}
2326
```
2427
### Via Node API
2528

2629
```js
2730
require("babel-core").transform("code", {
28-
plugins: ["transform-react-remove-statics", {
29-
"propTypes": true
30-
}]
31+
plugins: [
32+
["transform-react-remove-statics", {
33+
"propTypes": true
34+
}]
35+
]
3136
});
3237
```
3338

0 commit comments

Comments
 (0)