Add babelrc tip

This commit is contained in:
Wilfried OLLIVIER 2017-11-01 19:47:44 +01:00
parent 7438864585
commit 0f5c52feb5

View file

@ -0,0 +1,18 @@
# Babel and babel-preset-stage-2
If you want use the "Spead Operator" eg `...` in javascript, you need `babel-preset-stage-2`.
```shell
yarn add -D babel-preset-stage-2
```
Then enable it your babelrc :
```javascript
{
"presets": [
["es2015", { "modules": false }],
["stage-2"]
]
}
```