d3b937f990
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: https://github.com/facebook/react-native/pull/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 |
||
---|---|---|
.. | ||
Data | ||
UI | ||
__tests__ | ||
LogBox.js | ||
LogBoxInspectorContainer.js | ||
LogBoxNotificationContainer.js |