From 5a5c9f17987934f8ffc09cf9c376be40da3c9110 Mon Sep 17 00:00:00 2001 From: Daniel Ternyak Date: Tue, 11 Apr 2017 23:58:49 -0500 Subject: [PATCH] create babelcrc with flow support --- .babelrc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .babelrc diff --git a/.babelrc b/.babelrc new file mode 100644 index 00000000..945c87a8 --- /dev/null +++ b/.babelrc @@ -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"] + } + } +}