From 60b1a2f2c851593754168e61000a1f8ebe7f484e Mon Sep 17 00:00:00 2001 From: Vesa Laakso Date: Thu, 17 Nov 2016 14:48:22 +0200 Subject: [PATCH] Update babel-present-env and use node: 'current' as target (#1051) * Update babel-preset-env to 0.0.8 Changes between 0.0.6 and 0.0.8 should be backwards compatible: https://github.com/babel/babel-preset-env/blob/master/CHANGELOG.md * Use `node: 'current'` as target for babel-preset-env This replaces the hand-rolled node version setup with a new feature that was introduced in babel-preset-env@v0.0.7 https://github.com/babel/babel-preset-env/blob/v0.0.7/CHANGELOG.md --- packages/babel-preset-react-app/index.js | 2 +- packages/babel-preset-react-app/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/babel-preset-react-app/index.js b/packages/babel-preset-react-app/index.js index d6e9c4519d..7af3641424 100644 --- a/packages/babel-preset-react-app/index.js +++ b/packages/babel-preset-react-app/index.js @@ -68,7 +68,7 @@ if (env === 'test') { // ES features necessary for user's Node version [require('babel-preset-env').default, { targets: { - node: parseFloat(process.versions.node), + node: 'current', }, }], // JSX, Flow diff --git a/packages/babel-preset-react-app/package.json b/packages/babel-preset-react-app/package.json index bba2df1e0b..6ddae417bc 100644 --- a/packages/babel-preset-react-app/package.json +++ b/packages/babel-preset-react-app/package.json @@ -20,7 +20,7 @@ "babel-plugin-transform-react-jsx-source": "6.9.0", "babel-plugin-transform-regenerator": "6.16.1", "babel-plugin-transform-runtime": "6.15.0", - "babel-preset-env": "0.0.6", + "babel-preset-env": "0.0.8", "babel-preset-latest": "6.16.0", "babel-preset-react": "6.16.0", "babel-runtime": "6.11.6"