Skip to content
This repository has been archived by the owner on Feb 18, 2019. It is now read-only.

Commit

Permalink
Fix HMR variable namings
Browse files Browse the repository at this point in the history
Reviewed By: sam-swarr

Differential Revision: D3065862

fb-gh-sync-id: b7be3187bbc5d659e863d19071cb6d13a7d8199d
shipit-source-id: b7be3187bbc5d659e863d19071cb6d13a7d8199d
  • Loading branch information
martinbigio authored and Facebook Github Bot 0 committed Mar 17, 2016
1 parent f9d79b3 commit d0caf7e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions local-cli/server/util/attachHMRServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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]);
}
});
Expand Down

0 comments on commit d0caf7e

Please sign in to comment.