react-native/local-cli/server
Martín Bigio f2bdb79782 Make HMR server send full list modules that changed
Summary:
public

Before this diff we were only accepting the module that was modified but the user. This works fine as long as the user doesn't modify the dependencies a module has but once he starts doing so the HMR runtime may fail when updating modules' code because they might might a few dependencies. For instance, if the user changes the `src` a `Image` has to reference an image (using the new asset system) that wasn't on the original bundle the user will get a red box. This diff addresses this by diffing the modules the app currently has with the new ones it should have and including all of them on the HMR update. Note this diffing is only done when the we realize the module that was modified changed it's dependencies so there's no additional overhead on this change.

Reviewed By: vjeux

Differential Revision: D2796325

fb-gh-sync-id: cac95f2e995310634c221bbbb09d9f3e7bc03e8d
2016-01-04 13:02:27 -08:00
..
middleware Fix CPU profiler upload 2015-10-30 14:46:00 -07:00
util Make HMR server send full list modules that changed 2016-01-04 13:02:27 -08:00
checkNodeVersion.js Move `private-cli` commands to `local-cli` 2015-10-26 15:36:04 -07:00
formatBanner.js Move `private-cli` commands to `local-cli` 2015-10-26 15:36:04 -07:00
runServer.js Introduce transforms pipeline 2016-01-04 11:32:42 -08:00
server.js Introduce transforms pipeline 2016-01-04 11:32:42 -08:00