Resolve requires on HMR

Summary:
public

Requires are transformed when building the bundle but we forgot doing so when building the HMR one.

Reviewed By: vjeux

Differential Revision: D2801319

fb-gh-sync-id: ae70612945ab81a05154b14d6b756ef390770542
This commit is contained in:
Martín Bigio
2016-01-06 09:46:56 -08:00
committed by facebook-github-bot-5
parent a5c1f0303c
commit d875aac3c8
3 changed files with 50 additions and 26 deletions

View File

@@ -151,7 +151,11 @@ function attachHMRServer({httpServer, path, packagerServer}) {
return;
}
return packagerServer.buildBundleForHMR(modulesToUpdate);
return packagerServer.buildBundleForHMR({
entryFile: client.bundleEntry,
platform: client.platform,
modules: modulesToUpdate,
});
})
.then(bundle => {
if (bundle) {