create babelcrc with flow support
This commit is contained in:
parent
61d185b286
commit
5a5c9f1798
|
@ -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"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue