diff --git a/babel.config.json b/babel.config.json index 49d6564f0ea..28e9f48eeed 100644 --- a/babel.config.json +++ b/babel.config.json @@ -26,9 +26,6 @@ ] ], "plugins": [ - // added to mitigate https://github.com/babel/babel/issues/14289 - // package (and following line) can be removed once the issue is fixed and released - "@babel/plugin-proposal-class-properties", [ "@babel/plugin-transform-typescript", { @@ -36,6 +33,9 @@ "allowDeclareFields": true } ], + // added to mitigate https://github.com/babel/babel/issues/14289 + // package (and following line) can be removed once the issue is fixed and released + "@babel/plugin-proposal-class-properties", ["@babel/plugin-proposal-object-rest-spread", { "loose": true }], "@babel/plugin-transform-react-constant-elements", "@babel/plugin-proposal-nullish-coalescing-operator",