diff --git a/.babelrc b/.babelrc index 2c595ce..ecbb2e8 100644 --- a/.babelrc +++ b/.babelrc @@ -1,9 +1,11 @@ { "presets": [ "es2015", + "es2017", "stage-0" ], "plugins": [ + "transform-runtime", "add-module-exports" ] } diff --git a/package.json b/package.json index 4afc652..35688f7 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "babel-plugin-add-module-exports": "^0.2.1", "babel-plugin-transform-runtime": "^6.15.0", "babel-preset-es2015": "^6.18.0", + "babel-preset-es2017": "^6.16.0", "babel-preset-stage-0": "^6.16.0", "chalk": "^1.1.3", "chokidar": "^1.6.1", diff --git a/yarn.lock b/yarn.lock index b7dc6a1..df88ee3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -472,7 +472,7 @@ babel-plugin-syntax-object-rest-spread@^6.8.0: version "6.13.0" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5" -babel-plugin-syntax-trailing-function-commas@^6.3.13: +babel-plugin-syntax-trailing-function-commas@^6.3.13, babel-plugin-syntax-trailing-function-commas@^6.8.0: version "6.13.0" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.13.0.tgz#2b84b7d53dd744f94ff1fad7669406274b23f541" @@ -783,6 +783,13 @@ babel-preset-es2015: babel-plugin-transform-es2015-unicode-regex "^6.3.13" babel-plugin-transform-regenerator "^6.16.0" +babel-preset-es2017: + version "6.16.0" + resolved "https://registry.yarnpkg.com/babel-preset-es2017/-/babel-preset-es2017-6.16.0.tgz#536c6287778a758948ddd092b466b6ef50b786fa" + dependencies: + babel-plugin-syntax-trailing-function-commas "^6.8.0" + babel-plugin-transform-async-to-generator "^6.16.0" + babel-preset-stage-0: version "6.16.0" resolved "https://registry.yarnpkg.com/babel-preset-stage-0/-/babel-preset-stage-0-6.16.0.tgz#f5a263c420532fd57491f1a7315b3036e428f823"