mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-26 05:15:49 +08:00
Send assets updates through HRM interface
Reviewed By: frantic Differential Revision: D2832693 fb-gh-sync-id: 816a01fa2f1f7cc8ca218de86b3e2e847ee005c9
This commit is contained in:
committed by
facebook-github-bot-1
parent
38486dcbba
commit
c9f274c02d
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user