diff --git a/.babelrc b/.babelrc index a902b571..43549db4 100644 --- a/.babelrc +++ b/.babelrc @@ -5,18 +5,18 @@ } }, "ignore": ["node_modules/**/*"], - "plugins": [ - "@babel/plugin-syntax-dynamic-import", - "@babel/plugin-transform-flow-strip-types", - "@babel/plugin-transform-property-mutators", - "@babel/plugin-proposal-object-rest-spread", - "@babel/plugin-proposal-class-properties", + "plugins": ["@babel/plugin-transform-flow-strip-types", "@babel/plugin-proposal-class-properties"], + "presets": [ [ - "@babel/plugin-transform-classes", + "@babel/preset-env", { - "loose": true + "loose": true, + "bugfixes": true, + "targets": { + "browsers": ["chrome >= 47", "firefox >= 51", "ie >= 11", "safari >= 8", "ios >= 8", "android >= 4"] + } } - ] - ], - "presets": ["@babel/preset-env", "@babel/preset-flow"] + ], + "@babel/preset-flow" + ] } diff --git a/package.json b/package.json index 37c46173..795cf9cf 100644 --- a/package.json +++ b/package.json @@ -36,11 +36,7 @@ "@babel/cli": "^7.10.5", "@babel/core": "^7.10.5", "@babel/plugin-proposal-class-properties": "^7.10.4", - "@babel/plugin-proposal-object-rest-spread": "^7.10.4", - "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/plugin-transform-classes": "^7.10.4", "@babel/plugin-transform-flow-strip-types": "^7.10.4", - "@babel/plugin-transform-property-mutators": "^7.10.4", "@babel/preset-env": "^7.10.4", "@babel/preset-flow": "^7.10.4", "@babel/register": "^7.10.5", diff --git a/yarn.lock b/yarn.lock index 8858113e..76ae07da 100644 --- a/yarn.lock +++ b/yarn.lock @@ -376,7 +376,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.10.4" -"@babel/plugin-syntax-dynamic-import@^7.8.0", "@babel/plugin-syntax-dynamic-import@^7.8.3": +"@babel/plugin-syntax-dynamic-import@^7.8.0": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz#62bf98b2da3cd21d626154fc96ee5b3cb68eacb3" integrity sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ== @@ -631,14 +631,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.10.4" -"@babel/plugin-transform-property-mutators@^7.10.4": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-mutators/-/plugin-transform-property-mutators-7.10.4.tgz#ee8555609d717b7f73e5b9cd161adf003a0f40ea" - integrity sha512-9+qPYEpJvBjpcZDLffYybBTl7nZmk0sK0wkwsZQK6rvgGHnxpk9mAvFGV3h11/1UeJe1uXwXdY0HsstnCBZGGw== - dependencies: - "@babel/helper-define-map" "^7.10.4" - "@babel/helper-plugin-utils" "^7.10.4" - "@babel/plugin-transform-regenerator@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.10.4.tgz#2015e59d839074e76838de2159db421966fd8b63"