From 0f08635991bdf18287f008ff6c862ad541e22e8a Mon Sep 17 00:00:00 2001 From: Rafael Oleza Date: Mon, 13 Aug 2018 07:24:44 -0700 Subject: [PATCH] Fix passing the --reset-cache CLI argument to Metro Summary: @public While debugging a RN 0.57 blocking issue, we found that the `--reset-cache` cli arg is not being passed to Metro (more info: https://github.com/facebook/react-native/issues/20567#issuecomment-412513942). This diff fixes this issue Reviewed By: mjesun Differential Revision: D9295634 fbshipit-source-id: a53ec7abff2b7e684a1fd88c3b53ff0b54a1c3c4 --- local-cli/server/runServer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/local-cli/server/runServer.js b/local-cli/server/runServer.js index 369de4783..bad3be828 100644 --- a/local-cli/server/runServer.js +++ b/local-cli/server/runServer.js @@ -57,6 +57,7 @@ async function runServer(args: Args, config: ConfigT) { config.maxWorkers = args.maxWorkers; config.server.port = args.port; config.reporter = reporter; + config.resetCache = args.resetCache; config.server.enhanceMiddleware = middleware => middlewareManager.getConnectInstance().use(middleware);