From 187e1cf2eea2c0eb9b734865e1c6fabe31f2ee4e Mon Sep 17 00:00:00 2001 From: Eric Rozell Date: Mon, 20 Aug 2018 09:56:53 -0700 Subject: [PATCH] Apply `--reset-cache` argument to `bundle` command (#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 #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: https://github.com/facebook/react-native/pull/20706 Differential Revision: D9400548 Pulled By: hramos fbshipit-source-id: 2c7ed0226cfcdffa8cc77506500c314552baef3f --- local-cli/bundle/buildBundle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-cli/bundle/buildBundle.js b/local-cli/bundle/buildBundle.js index bcb496cad05d21..cd31e21e0ded4d 100644 --- a/local-cli/bundle/buildBundle.js +++ b/local-cli/bundle/buildBundle.js @@ -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);