From 99563e91736e9de473c4865d5cb6fd9eb1a26bcb Mon Sep 17 00:00:00 2001 From: Ricky Date: Sat, 15 Mar 2025 15:21:57 -0400 Subject: [PATCH] Partially revert #32588 (#32621) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/facebook/react/pull/32588 changed the babel config impacting local tests, and I'm not able to run test: Screenshot 2025-03-15 at 2 37 00 PM This PR reverts those changes until we can re-land with a fix. --- babel.config.js | 3 +-- package.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/babel.config.js b/babel.config.js index 3498e2aebe..f8a28b20cc 100644 --- a/babel.config.js +++ b/babel.config.js @@ -4,8 +4,7 @@ module.exports = { plugins: [ '@babel/plugin-syntax-jsx', '@babel/plugin-transform-flow-strip-types', - ['@babel/plugin-transform-class-properties', {loose: true}], - '@babel/plugin-transform-classes', + ['@babel/plugin-proposal-class-properties', {loose: true}], 'syntax-trailing-function-commas', [ '@babel/plugin-proposal-object-rest-spread', diff --git a/package.json b/package.json index ca0b62e846..0fcb952cc6 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "@babel/plugin-transform-block-scoped-functions": "^7.10.4", "@babel/plugin-transform-block-scoping": "^7.11.1", "@babel/plugin-transform-class-properties": "^7.25.9", - "@babel/plugin-transform-classes": "^7.25.9", + "@babel/plugin-transform-classes": "^7.10.4", "@babel/plugin-transform-computed-properties": "^7.10.4", "@babel/plugin-transform-destructuring": "^7.10.4", "@babel/plugin-transform-for-of": "^7.10.4",