diff --git a/babel.config.js b/babel.config.js index 659c0d744..786d5ac46 100644 --- a/babel.config.js +++ b/babel.config.js @@ -4,6 +4,7 @@ module.exports = api => { return { presets: ['@babel/env', '@babel/react', '@babel/flow'], plugins: [ + '@babel/plugin-proposal-object-rest-spread', '@babel/plugin-syntax-dynamic-import', 'import-glob', '@babel/plugin-transform-runtime', diff --git a/package.json b/package.json index cbad1645d..2b7f1f721 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,7 @@ "@babel/core": "^7.0.0", "@babel/plugin-proposal-class-properties": "^7.0.0", "@babel/plugin-proposal-decorators": "^7.3.0", + "@babel/plugin-proposal-object-rest-spread": "^7.6.2", "@babel/plugin-syntax-dynamic-import": "^7.2.0", "@babel/plugin-transform-flow-strip-types": "^7.2.3", "@babel/plugin-transform-runtime": "^7.4.3",