diff --git a/.babelrc b/.babelrc index 6a00822..295464a 100644 --- a/.babelrc +++ b/.babelrc @@ -1,4 +1,4 @@ { - "presets": ["react"], + "presets": ["es2015", "react"], "plugins": ["transform-es2015-modules-commonjs", "transform-object-rest-spread", "transform-flow-strip-types"] } diff --git a/package.json b/package.json index 52e45cf..5aacdd3 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "babel-plugin-transform-es2015-modules-commonjs": "^6.18.0", "babel-plugin-transform-flow-strip-types": "^6.14.0", "babel-plugin-transform-object-rest-spread": "^6.8.0", + "babel-preset-es2015": "^6.18.0", "babel-preset-react": "^6.11.1", "eslint": "^3.2.2", "eslint-loader": "^1.5.0",