Fix HMR variable namings

Reviewed By: sam-swarr

Differential Revision: D3065862

fb-gh-sync-id: b7be3187bbc5d659e863d19071cb6d13a7d8199d
shipit-source-id: b7be3187bbc5d659e863d19071cb6d13a7d8199d
This commit is contained in:
Martin Bigio 2016-03-17 15:05:55 -07:00 committed by Facebook Github Bot 0
parent f9d79b3415
commit d0caf7e48b
1 changed files with 5 additions and 5 deletions

View File

@ -179,10 +179,10 @@ function attachHMRServer({httpServer, path, packagerServer}) {
// dependencies we used to have with the one we now have
return getDependencies(client.platform, client.bundleEntry)
.then(({
depsCache,
depsModulesCache,
shallowDeps,
inverseDepsCache,
dependenciesCache: depsCache,
dependenciesModulesCache: depsModulesCache,
shallowDependencies: shallowDeps,
inverseDependenciesCache: inverseDepsCache,
resolutionResponse,
}) => {
if (!client) {
@ -192,7 +192,7 @@ function attachHMRServer({httpServer, path, packagerServer}) {
// build list of modules for which we'll send HMR updates
const modulesToUpdate = [packagerServer.getModuleForPath(filename)];
Object.keys(depsModulesCache).forEach(module => {
if (!client.depsModulesCache[module]) {
if (!client.dependenciesModulesCache[module]) {
modulesToUpdate.push(depsModulesCache[module]);
}
});