From a91ff5162351a085a1798c82ac14648fc8ae95fc Mon Sep 17 00:00:00 2001 From: Pavel Prichodko Date: Tue, 28 Aug 2018 08:55:50 +0200 Subject: [PATCH] chore: upgrade to Babel 7 --- .../package.json | 6 ++-- packages/babel-preset-react-app/create.js | 1 - packages/babel-preset-react-app/package.json | 30 +++++++++---------- packages/react-dev-utils/package.json | 2 +- packages/react-error-overlay/package.json | 6 ++-- packages/react-scripts/package.json | 12 ++++---- 6 files changed, 27 insertions(+), 30 deletions(-) diff --git a/packages/babel-plugin-named-asset-import/package.json b/packages/babel-plugin-named-asset-import/package.json index eec4516f8a..31cc099ccf 100644 --- a/packages/babel-plugin-named-asset-import/package.json +++ b/packages/babel-plugin-named-asset-import/package.json @@ -8,10 +8,8 @@ "url": "https://github.com/facebookincubator/create-react-app/issues" }, "main": "index.js", - "files": [ - "index.js" - ], + "files": ["index.js"], "peerDependencies": { - "@babel/core": "7.0.0-beta.46" + "@babel/core": "7.0.0" } } diff --git a/packages/babel-preset-react-app/create.js b/packages/babel-preset-react-app/create.js index 2ead09570f..273446ed4c 100644 --- a/packages/babel-preset-react-app/create.js +++ b/packages/babel-preset-react-app/create.js @@ -107,7 +107,6 @@ module.exports = function(api, opts, env) { require('@babel/plugin-transform-runtime').default, { helpers: false, - polyfill: false, regenerator: true, }, ], diff --git a/packages/babel-preset-react-app/package.json b/packages/babel-preset-react-app/package.json index 27b7019529..45d58906b1 100644 --- a/packages/babel-preset-react-app/package.json +++ b/packages/babel-preset-react-app/package.json @@ -16,21 +16,21 @@ "test.js" ], "dependencies": { - "@babel/core": "7.0.0-beta.46", - "@babel/plugin-proposal-class-properties": "7.0.0-beta.46", - "@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.46", - "@babel/plugin-syntax-dynamic-import": "7.0.0-beta.46", - "@babel/plugin-transform-classes": "7.0.0-beta.46", - "@babel/plugin-transform-destructuring": "7.0.0-beta.46", - "@babel/plugin-transform-react-constant-elements": "7.0.0-beta.46", - "@babel/plugin-transform-react-display-name": "7.0.0-beta.46", - "@babel/plugin-transform-regenerator": "7.0.0-beta.46", - "@babel/plugin-transform-runtime": "7.0.0-beta.46", - "@babel/preset-env": "7.0.0-beta.46", - "@babel/preset-flow": "7.0.0-beta.46", - "@babel/preset-react": "7.0.0-beta.46", - "babel-plugin-macros": "2.2.1", + "@babel/core": "7.0.0", + "@babel/plugin-proposal-class-properties": "7.0.0", + "@babel/plugin-proposal-object-rest-spread": "7.0.0", + "@babel/plugin-syntax-dynamic-import": "7.0.0", + "@babel/plugin-transform-classes": "7.0.0", + "@babel/plugin-transform-destructuring": "7.0.0", + "@babel/plugin-transform-react-constant-elements": "7.0.0", + "@babel/plugin-transform-react-display-name": "7.0.0", + "@babel/plugin-transform-regenerator": "7.0.0", + "@babel/plugin-transform-runtime": "7.0.0", + "@babel/preset-env": "7.0.0", + "@babel/preset-flow": "7.0.0", + "@babel/preset-react": "7.0.0", + "babel-plugin-macros": "2.4.0", "babel-plugin-transform-dynamic-import": "2.0.0", - "babel-plugin-transform-react-remove-prop-types": "0.4.13" + "babel-plugin-transform-react-remove-prop-types": "0.4.15" } } diff --git a/packages/react-dev-utils/package.json b/packages/react-dev-utils/package.json index 04b35d78ca..db45b22870 100644 --- a/packages/react-dev-utils/package.json +++ b/packages/react-dev-utils/package.json @@ -38,7 +38,7 @@ "workspaceUtils.js" ], "dependencies": { - "@babel/code-frame": "7.0.0-beta.46", + "@babel/code-frame": "7.0.0", "address": "1.0.3", "browserslist": "3.2.6", "chalk": "2.4.1", diff --git a/packages/react-error-overlay/package.json b/packages/react-error-overlay/package.json index 6e7e1f3e88..9e37209ec3 100644 --- a/packages/react-error-overlay/package.json +++ b/packages/react-error-overlay/package.json @@ -30,9 +30,9 @@ "lib/index.js" ], "devDependencies": { - "@babel/code-frame": "7.0.0-beta.46", - "@babel/core": "7.0.0-beta.46", - "@babel/runtime": "7.0.0-beta.46", + "@babel/code-frame": "7.0.0", + "@babel/core": "7.0.0", + "@babel/runtime": "7.0.0", "anser": "1.4.6", "babel-core": "^7.0.0-bridge.0", "babel-eslint": "^8.2.2", diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index cc59061941..42a324590e 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -21,13 +21,13 @@ "react-scripts": "./bin/react-scripts.js" }, "dependencies": { - "@babel/core": "7.0.0-beta.46", - "@babel/runtime": "7.0.0-beta.46", + "@babel/core": "7.0.0", + "@babel/runtime": "7.0.0", "autoprefixer": "8.5.0", "babel-core": "7.0.0-bridge.0", - "babel-eslint": "8.2.3", + "babel-eslint": "9.0.0", "babel-jest": "22.4.3", - "babel-loader": "8.0.0-beta.4", + "babel-loader": "8.0.0", "babel-plugin-named-asset-import": "^0.1.0", "babel-preset-react-app": "^3.1.1", "bfj": "5.2.0", @@ -49,12 +49,12 @@ "graphql-tag": "2.9.2", "html-webpack-plugin": "3.2.0", "identity-obj-proxy": "3.0.0", - "loader-utils": "^1.1.0", "jest": "22.4.3", + "loader-utils": "^1.1.0", "mini-css-extract-plugin": "^0.4.0", "object-assign": "4.1.1", - "postcss-flexbugs-fixes": "3.3.1", "optimize-css-assets-webpack-plugin": "^4.0.1", + "postcss-flexbugs-fixes": "3.3.1", "postcss-loader": "2.1.5", "promise": "8.0.1", "raf": "3.4.0",