react-native/local-cli/server
Janic Duplessis f05943de0a Fix local-cli assetRegistryPath and middlewares (#20162)
Summary:
This fixes some regressions with local-cli introduced in c4a66a89a2.

- We didn't pass `assetRegistryPath` which caused the following error when loading the bundle:
```
error: bundling failed: Error: Unable to resolve module `missing-asset-registry-path` from `/Users/janic/Developer/react-native/RNTester/js/uie_thumb_normal@2x.png`: Module `missing-asset-registry-path` does not exist in the Haste module map
```
- The middlewares were not added to the metro server. This causes some packager server features to fail. The one I noticed is that the /status endpoint didn't exist anymore which causes CI to fail and also Android to not load the bundle from the packager initially. The remote debugging feature was also broken.
Pull Request resolved: https://github.com/facebook/react-native/pull/20162

Differential Revision: D8867610

Pulled By: hramos

fbshipit-source-id: 8a08b7f3175692ab6ee73c0a7c25075091ae4792
2018-07-18 15:34:15 -07:00
..
middleware Fix local-cli assetRegistryPath and middlewares (#20162) 2018-07-18 15:34:15 -07:00
util Fixed issue with reloading bundle from remote debugger 2018-07-11 04:31:14 -07:00
checkNodeVersion.js Bump minimum Node version to 8.3 (#20236) 2018-07-17 21:02:19 -07:00
runServer.js Fix local-cli assetRegistryPath and middlewares (#20162) 2018-07-18 15:34:15 -07:00
server.js Code clean-ups and createServer migration 2018-07-02 09:47:39 -07:00