mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
4ccb2f2aa2
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/49060 We want to hide private properties from JS public API interface. The stripPrivateProperties transform removes all private nodes of type ObjectTypeProperty, Property, PropertyDefinition and MethodDefinition. There is also a change in transforms reducer that incorporates `print` function from hermes-transform which modifies the code base on the transformed ast (transformed.mutatedCode seems to be a code before the transform operation). ## Changelog: [Internal] - Added transform that strips private properties in build-types script Reviewed By: huntie Differential Revision: D68892853 fbshipit-source-id: 5035fd4339aa6294d972e7aff0eb563f48d4c3d2