mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
Make Packager send fresh modules through HMR interface
Reviewed By: frantic Differential Revision: D2787951 fb-gh-sync-id: 63c04710b60d99b5161ef9a40b116ba2f72df745
This commit is contained in:
committed by
facebook-github-bot-6
parent
90781d3067
commit
ac9c3c548d
@@ -19,7 +19,12 @@ function attachHMRServer({httpServer, path, packagerServer}) {
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO(martinb): send HMR update
|
||||
packagerServer.buildBundleForHMR({
|
||||
entryFile: filename,
|
||||
// TODO(martinb): receive platform on query string when client connects
|
||||
platform: 'ios',
|
||||
})
|
||||
.then(bundle => activeWS.send(bundle));
|
||||
});
|
||||
|
||||
const WebSocketServer = require('ws').Server;
|
||||
|
||||
Reference in New Issue
Block a user