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:
Rafael Oleza 2017-12-13 04:16:41 -08:00 committed by Facebook Github Bot
parent f8fe6b0c70
commit fbf0aed3ac
1 changed files with 0 additions and 11 deletions

View File

@ -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]);
});