mirror of
https://github.com/status-im/metro.git
synced 2025-01-21 08:29:19 +00:00
Do not bundle deleted modules in HMR
Reviewed By: mjesun Differential Revision: D5777831 fbshipit-source-id: dd3551194eca99097cea5a1944555cd8adff9f19
This commit is contained in:
parent
14428a67e5
commit
177c4fb1ab
@ -96,8 +96,12 @@ class HmrServer<TClient: Client> {
|
||||
const modules = [];
|
||||
|
||||
for (const id in result.delta) {
|
||||
// The Delta Bundle can have null objects: these correspond to deleted
|
||||
// modules, which we don't need to send to the client.
|
||||
if (result.delta[id] != null) {
|
||||
modules.push({id, code: result.delta[id]});
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
type: 'update',
|
||||
|
Loading…
x
Reference in New Issue
Block a user