From 66a337b18e8e024e9d32b619c15453a75c75799d Mon Sep 17 00:00:00 2001 From: zaxlct Date: Wed, 26 Apr 2017 21:45:28 +0800 Subject: [PATCH] add babel-preset-stage-2 --- .babelrc | 8 ++------ package.json | 1 + 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.babelrc b/.babelrc index ac95979..61d50f2 100644 --- a/.babelrc +++ b/.babelrc @@ -1,10 +1,6 @@ { "presets": [ - [ - "es2015", - { - "modules": false - } - ] + ["es2015", { "modules": false }], + "stage-2" ] } diff --git a/package.json b/package.json index a386437..e3902b7 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "babel-eslint": "^7.0.0", "babel-loader": "^6.0.0", "babel-preset-es2015": "^6.0.0", + "babel-preset-stage-2": "^6.22.0", "cross-env": "^3.0.0", "css-loader": "^0.26.1", "eslint-friendly-formatter": "^2.0.5",