react-native-macos/Libraries/LogBox
Janic Duplessis d3b937f990 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: 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
2020-06-02 18:00:45 -07:00
..
Data LogBox - Always display the first fatal error 2020-05-06 11:40:22 -07:00
UI Rename error titles 2020-05-06 11:40:22 -07:00
__tests__ Handle errors in Metro by showing a code frame 2020-02-25 04:34:38 -08:00
LogBox.js Make sure LogBox is not included in production bundles (#28984) 2020-06-02 18:00:45 -07:00
LogBoxInspectorContainer.js LogBox - lazily initialize on iOS, use sync APIs 2019-12-13 03:09:00 -08:00
LogBoxNotificationContainer.js Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00