Files
react-native/Libraries
Dan Abramov abc663dd5a Add a shim for HMRClient in prod bundles
Summary:
Running a PROD JS bundle with a DEV binary used to redbox with Fast Refresh on. The error said "HMRClient is not a registered callable module".

This isn't a new issue: https://www.google.com/search?q=%22hmrclient%20is%20not%20a%20registered%22. However, now it happens every time because `setup()` is now called unconditionally in a DEV native build.

Because a combination of DEV binary + PROD JS is technically possible, I'm adding a tiny shim that will make it a no-op instead of crashing. It will also explain what's wrong if you *intentionally* try to turn on Fast Refresh.

Reviewed By: sahrens

Differential Revision: D16145378

fbshipit-source-id: 0b9c0a6f30c02ca7f4a0133048450bdde3576ad2
2019-07-07 13:25:10 -07:00
..
2019-05-20 18:05:55 -07:00
2019-07-03 02:29:47 -07:00
2019-06-21 10:59:09 -07:00
2019-07-04 07:10:55 -07:00
2019-06-27 08:21:29 -07:00
2019-06-26 19:07:39 -07:00
2019-05-13 11:43:49 -07:00
2019-07-04 10:30:33 -07:00
2019-06-07 06:39:28 -07:00