Send assets updates through HRM interface

Reviewed By: frantic

Differential Revision: D2832693

fb-gh-sync-id: 816a01fa2f1f7cc8ca218de86b3e2e847ee005c9
This commit is contained in:
Martín Bigio
2016-01-15 10:51:56 -08:00
committed by facebook-github-bot-1
parent 38486dcbba
commit c9f274c02d
2 changed files with 34 additions and 14 deletions

View File

@@ -139,7 +139,7 @@ function attachHMRServer({httpServer, path, packagerServer}) {
}
// build list of modules for which we'll send HMR updates
const modulesToUpdate = [];
const modulesToUpdate = [packagerServer.getModuleForPath(filename)];
Object.keys(dependenciesModulesCache).forEach(module => {
if (!client.dependenciesModulesCache[module]) {
modulesToUpdate.push(dependenciesModulesCache[module]);