create babelcrc with flow support

This commit is contained in:
Daniel Ternyak 2017-04-11 23:58:49 -05:00
parent 61d185b286
commit 5a5c9f1798
1 changed files with 18 additions and 0 deletions

18
.babelrc Normal file
View File

@ -0,0 +1,18 @@
{
"plugins": [
[
"transform-runtime", {
"helpers": false,
"polyfill": false,
"regenerator": true,
"moduleName": "babel-runtime"
}
],
"react-hot-loader/babel"],
"presets": ["es2015", "react", "stage-0", "flow"],
"env": {
"production": {
"presets": ["react-optimize"]
}
}
}