Skip to content

Commit

Permalink
Apply --reset-cache argument to bundle command (facebook#20706)
Browse files Browse the repository at this point in the history
Summary:
The `--reset-cache` argument was not working correctly with the `bundle` command. This ensures the `--reset-cache` arg is passed to metro.

Fixes facebook#20703

Thank you for sending the PR! We appreciate you spending the time to work on these changes.
Help us understand your motivation by explaining why you decided to make this change.

If this PR fixes an issue, type "Fixes #issueNumber" to automatically close the issue when the PR is merged.
Pull Request resolved: facebook#20706

Differential Revision: D9400548

Pulled By: hramos

fbshipit-source-id: 2c7ed0226cfcdffa8cc77506500c314552baef3f
  • Loading branch information
rozele authored and facebook-github-bot committed Aug 20, 2018
1 parent 719ce9f commit 187e1cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local-cli/bundle/buildBundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function buildBundle(
platform: args.platform,
};

const server = new Server(config);
const server = new Server({...config, resetCache: args.resetCache});

try {
const bundle = await output.build(server, requestOpts);
Expand Down

0 comments on commit 187e1cf

Please sign in to comment.