mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
e0be2efe4e
Summary: When decoupling the community-cli-plugin from the react-native-community/cli-server-api (https://github.com/facebook/react-native/issues/45311), a middleware stub was created to allow a runtime stub to be used in this case. This middleware should be used so as not to break when the optional cli-server-api dependency isn't present. Changelog: [General][Fixed] - Fix npm react-native start when cli-server-api isn't installed Pull Request resolved: https://github.com/facebook/react-native/pull/47450 Test Plan: Forced a runtime exception simulating the package not being dependent and was able to build rn-tester.  Reviewed By: cipolleschi Differential Revision: D65532486 Pulled By: blakef fbshipit-source-id: 2b380607de63ac2da906ef0cb1e48b9ef263cb68