mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
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:
committed by
facebook-github-bot-5
parent
a5c1f0303c
commit
d875aac3c8
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user