Partially revert #32588 (#32621)

https://github.com/facebook/react/pull/32588 changed the babel config
impacting local tests, and I'm not able to run test:

<img width="1354" alt="Screenshot 2025-03-15 at 2 37 00 PM"
src="https://github.com/user-attachments/assets/2d4afe39-6ab6-4c83-87a9-ceb0ee5f8df5"
/>


This PR reverts those changes until we can re-land with a fix.
This commit is contained in:
Ricky 2025-03-15 15:21:57 -04:00 committed by GitHub
parent 17d274dc12
commit 99563e9173
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -4,8 +4,7 @@ module.exports = {
plugins: [ plugins: [
'@babel/plugin-syntax-jsx', '@babel/plugin-syntax-jsx',
'@babel/plugin-transform-flow-strip-types', '@babel/plugin-transform-flow-strip-types',
['@babel/plugin-transform-class-properties', {loose: true}], ['@babel/plugin-proposal-class-properties', {loose: true}],
'@babel/plugin-transform-classes',
'syntax-trailing-function-commas', 'syntax-trailing-function-commas',
[ [
'@babel/plugin-proposal-object-rest-spread', '@babel/plugin-proposal-object-rest-spread',

View File

@ -21,7 +21,7 @@
"@babel/plugin-transform-block-scoped-functions": "^7.10.4", "@babel/plugin-transform-block-scoped-functions": "^7.10.4",
"@babel/plugin-transform-block-scoping": "^7.11.1", "@babel/plugin-transform-block-scoping": "^7.11.1",
"@babel/plugin-transform-class-properties": "^7.25.9", "@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-computed-properties": "^7.10.4",
"@babel/plugin-transform-destructuring": "^7.10.4", "@babel/plugin-transform-destructuring": "^7.10.4",
"@babel/plugin-transform-for-of": "^7.10.4", "@babel/plugin-transform-for-of": "^7.10.4",