Skip to content

[0.81] Configure reactRuntimeTarget: '19' in @react-native/babel-preset #1044

Description

@yungsters

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type Pick RequestPick requests to include commits inside a React Native release

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions