mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
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.
27 lines
1010 B
JavaScript
27 lines
1010 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
plugins: [
|
|
'@babel/plugin-syntax-jsx',
|
|
'@babel/plugin-transform-flow-strip-types',
|
|
['@babel/plugin-proposal-class-properties', {loose: true}],
|
|
'syntax-trailing-function-commas',
|
|
[
|
|
'@babel/plugin-proposal-object-rest-spread',
|
|
{loose: true, useBuiltIns: true},
|
|
],
|
|
['@babel/plugin-transform-template-literals', {loose: true}],
|
|
'@babel/plugin-transform-literals',
|
|
'@babel/plugin-transform-arrow-functions',
|
|
'@babel/plugin-transform-block-scoped-functions',
|
|
'@babel/plugin-transform-object-super',
|
|
'@babel/plugin-transform-shorthand-properties',
|
|
'@babel/plugin-transform-computed-properties',
|
|
'@babel/plugin-transform-for-of',
|
|
['@babel/plugin-transform-spread', {loose: true, useBuiltIns: true}],
|
|
'@babel/plugin-transform-parameters',
|
|
['@babel/plugin-transform-destructuring', {loose: true, useBuiltIns: true}],
|
|
['@babel/plugin-transform-block-scoping', {throwIfClosureRequired: true}],
|
|
],
|
|
};
|