From 8514ccc94b815f46461dd0fb5b4e08d6a4ddf355 Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Fri, 13 Nov 2020 21:37:37 +0800 Subject: [PATCH] build: drop babel plugin --- .babelrc | 11 +++++------ package.json | 1 - yarn.lock | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.babelrc b/.babelrc index 76f3839..3d26498 100644 --- a/.babelrc +++ b/.babelrc @@ -12,15 +12,14 @@ "targets": { "esmodules": true }, - "exclude": ["babel-plugin-transform-async-to-generator"] + "exclude": [ + "@babel/plugin-transform-async-to-generator", + "@babel/plugin-proposal-object-rest-spread" + ] } ], "@babel/preset-typescript", "@babel/preset-react" ], - "plugins": [ - "@babel/plugin-proposal-optional-chaining", - "@babel/plugin-proposal-class-properties", - "@babel/plugin-proposal-object-rest-spread" - ] + "plugins": ["@babel/plugin-proposal-optional-chaining", "@babel/plugin-proposal-class-properties"] } diff --git a/package.json b/package.json index 1efb790..13cd60d 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,6 @@ "@babel/cli": "^7.2.3", "@babel/core": "^7.3.4", "@babel/plugin-proposal-class-properties": "^7.3.4", - "@babel/plugin-proposal-object-rest-spread": "^7.3.4", "@babel/plugin-proposal-optional-chaining": "^7.6.0", "@babel/preset-env": "^7.3.4", "@babel/preset-react": "^7.0.0", diff --git a/yarn.lock b/yarn.lock index 4135e92..6ed3ebd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -523,7 +523,7 @@ "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-syntax-json-strings" "^7.2.0" -"@babel/plugin-proposal-object-rest-spread@^7.3.4", "@babel/plugin-proposal-object-rest-spread@^7.5.5": +"@babel/plugin-proposal-object-rest-spread@^7.5.5": version "7.5.5" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.5.5.tgz#61939744f71ba76a3ae46b5eea18a54c16d22e58" integrity sha512-F2DxJJSQ7f64FyTVl5cw/9MWn6naXGdk3Q3UhDbFEEHv+EilCPoeRD3Zh/Utx1CJz4uyKlQ4uH+bJPbEhMV7Zw==