react-native/local-cli/server/middleware
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
..
MiddlewareManager.js Fix local-cli assetRegistryPath and middlewares (#20162) 2018-07-18 15:34:15 -07:00
copyToClipBoardMiddleware.js Prettier RN local-cli 2018-05-11 13:00:50 -07:00
getDevToolsMiddleware.js Code clean-ups and createServer migration 2018-07-02 09:47:39 -07:00
index.html
indexPage.js Prettier RN local-cli 2018-05-11 13:00:50 -07:00
loadRawBodyMiddleware.js Prettier RN local-cli 2018-05-11 13:00:50 -07:00
openStackFrameInEditorMiddleware.js Replace projectRoots with projectRoot + watchRoots 2018-06-19 13:47:32 -07:00
statusPageMiddleware.js Prettier RN local-cli 2018-05-11 13:00:50 -07:00
systraceProfileMiddleware.js Prettier RN local-cli 2018-05-11 13:00:50 -07:00
unless.js Prettier RN local-cli 2018-05-11 13:00:50 -07:00