From 4f261a0e96ee8c2cca0707a4315f110d6ca5d264 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 14 Oct 2016 18:02:26 +0100 Subject: [PATCH] Replace stage & es2017 with the specific plugins --- .babelrc | 3 ++- package.json | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.babelrc b/.babelrc index fb2f03c450..44f8af571d 100644 --- a/.babelrc +++ b/.babelrc @@ -1,3 +1,4 @@ { - "presets": ["react", "es2015", "es2016", "es2017", "stage-2"] + "presets": ["react", "es2015", "es2016"], + "plugins": ["transform-class-properties", "transform-object-rest-spread", "transform-async-to-generator"] } diff --git a/package.json b/package.json index a08aeb5a21..e34066eb16 100644 --- a/package.json +++ b/package.json @@ -56,13 +56,14 @@ "babel-core": "^6.14.0", "babel-eslint": "^6.1.0", "babel-loader": "^6.2.5", - "babel-plugin-transform-runtime": "^6.15.0", + "babel-plugin-transform-async-to-generator": "^6.16.0", + "babel-plugin-transform-class-properties": "^6.16.0", + "babel-plugin-transform-object-rest-spread": "^6.16.0", "babel-polyfill": "^6.5.0", "babel-preset-es2015": "^6.14.0", "babel-preset-es2016": "^6.11.3", "babel-preset-es2017": "^6.14.0", "babel-preset-react": "^6.11.1", - "babel-preset-stage-2": "^6.17.0", "eslint": "^2.13.1", "eslint-plugin-flowtype": "^2.17.0", "eslint-plugin-react": "^6.2.1",