diff --git a/babel.config.js b/babel.config.js index 76dcd1ae9..48e9e68eb 100644 --- a/babel.config.js +++ b/babel.config.js @@ -35,47 +35,17 @@ module.exports = function(api) { 'babel-plugin-macros', '@babel/plugin-syntax-dynamic-import', isTestEnv && 'babel-plugin-dynamic-import-node', + '@babel/plugin-proposal-class-properties', + '@babel/plugin-proposal-private-methods', + '@babel/plugin-proposal-private-property-in-object', + '@babel/plugin-transform-runtime', + '@babel/plugin-transform-regenerator', + '@babel/plugin-proposal-object-rest-spread', [ - '@babel/plugin-proposal-class-properties', + '@babel/plugin-transform-spread', { loose: true } - ], - [ - "@babel/plugin-proposal-private-methods", - { - loose: true - } - ], - [ - "@babel/plugin-proposal-private-property-in-object", - { - loose: true - } - ], - [ - '@babel/plugin-proposal-object-rest-spread', - { - useBuiltIns: true - } - ], - [ - '@babel/plugin-transform-runtime', - { - helpers: false - } - ], - [ - '@babel/plugin-transform-regenerator', - { - async: false - } - ], - [ - "@babel/plugin-transform-spread", - { - "loose": true - } ] ].filter(Boolean) }