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:
parent
f9d79b3415
commit
d0caf7e48b
|
@ -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]);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue