Implement changes needed to HMRClient to handle wrapped modules from metro
Reviewed By: cpojer Differential Revision: D6550532 fbshipit-source-id: 606f536cc22df15b248b6a435587e9d2cc7cda57
This commit is contained in:
parent
f8fe6b0c70
commit
fbf0aed3ac
|
@ -89,7 +89,6 @@ Error: ${e.message}`
|
|||
modules,
|
||||
sourceMappingURLs,
|
||||
sourceURLs,
|
||||
inverseDependencies,
|
||||
} = data.body;
|
||||
|
||||
if (Platform.OS === 'ios') {
|
||||
|
@ -110,16 +109,6 @@ Error: ${e.message}`
|
|||
? global.nativeInjectHMRUpdate
|
||||
: eval;
|
||||
|
||||
code = [
|
||||
'__accept(',
|
||||
`${id},`,
|
||||
'function(global,require,module,exports){',
|
||||
`${code}`,
|
||||
'\n},',
|
||||
`${JSON.stringify(inverseDependencies)}`,
|
||||
');',
|
||||
].join('');
|
||||
|
||||
injectFunction(code, sourceURLs[i]);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue