SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

Align default transform profile Babel preset with legacy Hermes - drop "older" engines (#54806)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/54806

Align the default transform profile in our Babel preset with the current state of `hermes-stable`, drop non-Hermes, pre-ES6 engines which have been unsupported in core since the JSC removal.

This will allow us to subsequently repurpose transform profiles (`unstable_transformProfile`) to remove transforms unnecessary for Hermes v1 (aka Static Hermes) as follows:

- `hermes-canary` -> Hermes v1 (experimental features)
- `hermes-stable` -> Hermes v1
- Default -> All supported engines (i.e, Hermes v1 and legacy)

Changelog:

[General][Removed] Remove Babel preset transforms for already-unsupported non-Hermes engines

Reviewed By: javache, huntie

Differential Revision: D88269506

fbshipit-source-id: 721d4a6a632d61ad04a10d9fd55c5b249758073a
R
Rob Hogan committed
07bd24ed0dbd11e77743086a970b9e7507e15c8f
Parent: c4c587e
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com> on 12/12/2025, 9:15:02 PM