diff --git a/config/babel.config.js b/config/babel.config.js index a2e48f358..9667fa2e6 100644 --- a/config/babel.config.js +++ b/config/babel.config.js @@ -3,5 +3,5 @@ module.exports = { presets: ['@babel/react'], - plugins: ['@babel/plugin-proposal-class-properties'], + plugins: ['@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-object-rest-spread'], }; diff --git a/package.json b/package.json index 7c7f52746..179dffbc6 100644 --- a/package.json +++ b/package.json @@ -61,6 +61,7 @@ "devDependencies": { "@babel/cli": "7.x", "@babel/core": "7.x", + "@babel/plugin-proposal-object-rest-spread": "7.6.2", "@babel/plugin-proposal-class-properties": "7.x", "@babel/polyfill": "7.x", "@babel/preset-env": "7.x", diff --git a/yarn.lock b/yarn.lock index de20ff911..184b42342 100644 --- a/yarn.lock +++ b/yarn.lock @@ -303,6 +303,14 @@ "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-syntax-object-rest-spread" "^7.2.0" +"@babel/plugin-proposal-object-rest-spread@^7.6.2": + version "7.6.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.6.2.tgz#8ffccc8f3a6545e9f78988b6bf4fe881b88e8096" + integrity sha512-LDBXlmADCsMZV1Y9OQwMc0MyGZ8Ta/zlD9N67BfQT8uYwkRswiu2hU6nJKrjrt/58aH/vqfQlR/9yId/7A2gWw== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-object-rest-spread" "^7.2.0" + "@babel/plugin-proposal-optional-catch-binding@^7.2.0": version "7.2.0" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.2.0.tgz#135d81edb68a081e55e56ec48541ece8065c38f5"