diff --git a/babel.config.json b/babel.config.json index 3d20f24d..79f1c016 100644 --- a/babel.config.json +++ b/babel.config.json @@ -1,22 +1,21 @@ { "presets": [ - "@babel/preset-typescript", [ "@babel/preset-env", { "targets": "defaults and not IE 11" } ], + "@babel/preset-typescript", "@babel/preset-react" ], "plugins": [ - "@babel/plugin-syntax-dynamic-import", - "@babel/plugin-transform-destructuring", - "@babel/plugin-proposal-class-properties", - "@babel/plugin-proposal-object-rest-spread", - "@babel/plugin-transform-parameters", - "@babel/plugin-transform-spread", - "@babel/plugin-transform-shorthand-properties", - "@babel/plugin-proposal-optional-catch-binding" + [ + "@babel/plugin-proposal-class-properties", + { + "loose": true + } + ], + "@babel/plugin-transform-runtime" ] } diff --git a/package.json b/package.json index 8a7a8c2e..69e1487b 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "@babel/core": "^7.12.16", "@babel/eslint-parser": "^7.12.16", "@babel/eslint-plugin": "^7.12.13", + "@babel/plugin-transform-runtime": "^7.12.15", "@babel/preset-env": "^7.12.16", "@babel/preset-react": "^7.12.13", "@babel/preset-typescript": "^7.12.16", diff --git a/yarn.lock b/yarn.lock index 034e8245..7715702b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -756,6 +756,15 @@ dependencies: "@babel/helper-plugin-utils" "^7.12.13" +"@babel/plugin-transform-runtime@^7.12.15": + version "7.12.15" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.12.15.tgz#4337b2507288007c2b197059301aa0af8d90c085" + integrity sha512-OwptMSRnRWJo+tJ9v9wgAf72ydXWfYSXWhnQjZing8nGZSDFqU1MBleKM3+DriKkcbv7RagA8gVeB0A1PNlNow== + dependencies: + "@babel/helper-module-imports" "^7.12.13" + "@babel/helper-plugin-utils" "^7.12.13" + semver "^5.5.1" + "@babel/plugin-transform-shorthand-properties@^7.12.13": version "7.12.13" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.12.13.tgz#db755732b70c539d504c6390d9ce90fe64aff7ad" @@ -6872,7 +6881,7 @@ selfsigned@^1.10.8: dependencies: node-forge "^0.10.0" -"semver@2 || 3 || 4 || 5", semver@^5.4.1, semver@^5.5.0, semver@^5.6.0: +"semver@2 || 3 || 4 || 5", semver@^5.4.1, semver@^5.5.0, semver@^5.5.1, semver@^5.6.0: version "5.7.1" resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==