From fbf0aed3acc056b5fd069af75fcae14246439a48 Mon Sep 17 00:00:00 2001 From: Rafael Oleza Date: Wed, 13 Dec 2017 04:16:41 -0800 Subject: [PATCH] Implement changes needed to HMRClient to handle wrapped modules from metro Reviewed By: cpojer Differential Revision: D6550532 fbshipit-source-id: 606f536cc22df15b248b6a435587e9d2cc7cda57 --- Libraries/Utilities/HMRClient.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Libraries/Utilities/HMRClient.js b/Libraries/Utilities/HMRClient.js index f6b9ce0822bc16..aa5d5c60e9bde8 100644 --- a/Libraries/Utilities/HMRClient.js +++ b/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]); });