diff --git a/.babelrc b/.babelrc index 841d22c2..c30cbe08 100644 --- a/.babelrc +++ b/.babelrc @@ -1,4 +1,4 @@ { - "presets": ["react", "es2015", "es2016", "es2017", "stage-0"], + "presets": ["react", "es2015", "es2016", "es2017", "stage-2"], "plugins": ["transform-runtime"] } diff --git a/babelcheck.js b/babelcheck.js index 2148d207..46098e09 100644 --- a/babelcheck.js +++ b/babelcheck.js @@ -16,6 +16,7 @@ exec("babel -V", function (error, stdout, stderr) { '*****************************************\n'+ '* vector-web has moved to babel 6 *\n'+ '* Please "rm -rf node_modules && npm i" *\n'+ + '* then restore links as appropriate *\n'+ '*****************************************\n'+ "\033[91m"); process.exit(1); diff --git a/package.json b/package.json index ac938741..e2d95499 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "babel-preset-es2016": "^6.16.0", "babel-preset-es2017": "^6.16.0", "babel-preset-react": "^6.16.0", - "babel-preset-stage-0": "^6.16.0", + "babel-preset-stage-2": "^6.17.0", "catw": "^1.0.1", "cpx": "^1.3.2", "css-raw-loader": "^0.1.1",