react/scripts/babel
Jan Kassens b83baf63f7
Transform updates to support Flow this annotation syntax (#25918)
Flow introduced a new syntax to annotated the context type of a
function, this tries to update the rest and add 1 example usage.

- 2b1fb91a55 already added the changes
required for eslint.
- Jest transform is updated to use the recommended `hermes-parser` which
can parse current and Flow syntax and will be updated in the future.
- Rollup uses a new plugin to strip the flow types. This isn't ideal as
the npm module is deprecated in favor of using `hermes-parser`, but I
couldn't figure out how to integrate that with Rollup.
2023-01-05 15:41:49 -05:00
..
__tests__ [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
getComments.js Transform updates to support Flow this annotation syntax (#25918) 2023-01-05 15:41:49 -05:00
transform-object-assign.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
transform-prevent-infinite-loops.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
transform-react-version-pragma.js Transform updates to support Flow this annotation syntax (#25918) 2023-01-05 15:41:49 -05:00
transform-replace-console-calls.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
transform-test-gate-pragma.js Transform updates to support Flow this annotation syntax (#25918) 2023-01-05 15:41:49 -05:00