Permalink
Browse files

Implement changes needed to HMRClient to handle wrapped modules from …

…metro

Reviewed By: cpojer

Differential Revision: D6550532

fbshipit-source-id: 606f536cc22df15b248b6a435587e9d2cc7cda57
  • Loading branch information...
rafeca authored and facebook-github-bot committed Dec 13, 2017
1 parent f8fe6b0 commit fbf0aed3acc056b5fd069af75fcae14246439a48
Showing with 0 additions and 11 deletions.
  1. +0 −11 Libraries/Utilities/HMRClient.js
@@ -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]);
});

0 comments on commit fbf0aed

Please sign in to comment.