Target Branch
0.81
Link to commit or PR to be picked
react/react-native#52625
Description
react/react-native#52625 changes @react-native/babel-preset to configure hermes-parser to use reactRuntimeTarget: '19' by default (while also exposing a way to override hermes-parser options more generally).
This is necessary to ensure that Component Syntax does not compile into forwardRef code, which has the undesirable side effect of suffixing the resulting component name with _withRef (which introduces a breaking change to Jest snapshots).
Target Branch
0.81
Link to commit or PR to be picked
react/react-native#52625
Description
react/react-native#52625 changes
@react-native/babel-presetto configurehermes-parserto usereactRuntimeTarget: '19'by default (while also exposing a way to overridehermes-parseroptions more generally).This is necessary to ensure that Component Syntax does not compile into
forwardRefcode, which has the undesirable side effect of suffixing the resulting component name with_withRef(which introduces a breaking change to Jest snapshots).