mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: If you use this preset to create library code, it is often helpful to be able to still read the transpiled code, even when sourcemaps are available. This change adds a compact option which allows for disabling the default behavior that removes whitespace from the transpiled files. ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [GENERAL] [ADDED] - Add `compact` option to `react-native/babel-preset` to allow disabling whitespace removal For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: https://github.com/facebook/react-native/pull/49979 Reviewed By: rshest Differential Revision: D71109024 Pulled By: robhogan fbshipit-source-id: ab205cca2a82b56955d1e1c55e288dcbe7754f8f