Skip to content

Commit

Permalink
Implement changes needed to HMRClient to handle wrapped modules from …
Browse files Browse the repository at this point in the history
…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 fbf0aed
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Libraries/Utilities/HMRClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ Error: ${e.message}`
modules,
sourceMappingURLs,
sourceURLs,
inverseDependencies,
} = data.body;

if (Platform.OS === 'ios') {
Expand All @@ -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]);
});

Expand Down

0 comments on commit fbf0aed

Please sign in to comment.