From 0f8cb1619319a4fba98557735ee1a7e9f49b6580 Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Mon, 21 Feb 2022 17:07:42 +0000 Subject: [PATCH] Chore: Reorder babel plugins into correct order (#45691) --- babel.config.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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",