From 64245abfc982fb225fa7fc38378a302e9ca47e14 Mon Sep 17 00:00:00 2001 From: David Aurelio Date: Mon, 19 Sep 2016 04:37:34 -0700 Subject: [PATCH] Fix HMR after adding RA-Bundle groups MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: The introduction of groups for random access bundles broke hot module reloading, because HMR uses a different Bundle class. And that didn’t have the `setRamGroups()` method. This just adds an empty method on the base class. **Test plan (required)** I ran `node scripts/run-ci-e2e-tests.js --android` Closes https://github.com/facebook/react-native/pull/9982 Differential Revision: D3886096 Pulled By: bestander fbshipit-source-id: 46e6183607b0275d3cfe0d892360248b7b2154e9 --- react-packager/src/Bundler/BundleBase.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/react-packager/src/Bundler/BundleBase.js b/react-packager/src/Bundler/BundleBase.js index f086dc7d..cf02728f 100644 --- a/react-packager/src/Bundler/BundleBase.js +++ b/react-packager/src/Bundler/BundleBase.js @@ -88,6 +88,8 @@ class BundleBase { } } + setRamGroups() {} + toJSON() { return { modules: this._modules,