SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

0 0 0 C++

Babel preset: Add unstable_preserveClassPrivate to experiment with disabling private class transforms for SH (#55880)

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

Disable `babel/plugin-transform-private-methods` and `babel/plugin-transform-private-property-in-object` when `customTransformOptions.unstable_preserveClassPrivate` is truthy. This allows us to experiment with native private class field and method support in Static Hermes.

Changelog: [Internal]

Reviewed By: vzaidman, javache

Differential Revision: D93010263

fbshipit-source-id: 25c48c8561b7c9b4f8d9984e47c5ca8b14007360
R
Rob Hogan committed
fa6576623ecd5ed22b7c2b6d1670e024c78fbfce
Parent: 1132229
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com> on 3/18/2026, 12:28:14 AM