Skip to content

Commit

Permalink
Fix HMR after adding RA-Bundle groups
Browse files Browse the repository at this point in the history
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 facebook#9982

Differential Revision: D3886096

Pulled By: bestander

fbshipit-source-id: 46e6183607b0275d3cfe0d892360248b7b2154e9
  • Loading branch information
davidaurelio authored and Facebook Github Bot 2 committed Sep 19, 2016
1 parent 5deb528 commit fd84447
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packager/react-packager/src/Bundler/BundleBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ class BundleBase {
}
}

setRamGroups() {}

toJSON() {
return {
modules: this._modules,
Expand Down

0 comments on commit fd84447

Please sign in to comment.