Skip to content

Commit e90d9ca

Browse files
rozelekelset
authored andcommitted
Apply --reset-cache argument to bundle command (facebook#20706)
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
1 parent b948dd9 commit e90d9ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

local-cli/bundle/buildBundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async function buildBundle(
5656
platform: args.platform,
5757
};
5858

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

6161
try {
6262
const bundle = await output.build(server, requestOpts);

0 commit comments

Comments
 (0)