Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure LogBox is not included in production bundles (#28984)
Summary: I was doing some bundle inspection and noticed the LogBox module was included. It does amount to around 15kb so I think it is worth making sure it is not there. To fix it I moved some imports to require inside __DEV__ blocks to make sure metro is able to remove these imports. ## Changelog [General] [Fixed] - Make sure LogBox is not included in production bundles Pull Request resolved: #28984 Test Plan: Tested using react-native-bundle-visualizer and made sure nothing from LogBox was included in the bundle after these changes. Reviewed By: TheSavior Differential Revision: D21794466 Pulled By: rickhanlonii fbshipit-source-id: 6cb0c0a89633e9850019bd61478c35e9c21638dc
- Loading branch information