Skip to content

Commit 03e4af6

Browse files
rafecakelset
authored andcommitted
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: facebook#20567 (comment)). This diff fixes this issue Reviewed By: mjesun Differential Revision: D9295634 fbshipit-source-id: a53ec7abff2b7e684a1fd88c3b53ff0b54a1c3c4
1 parent 39fc086 commit 03e4af6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

local-cli/server/runServer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ async function runServer(args: Args, config: ConfigT) {
5757
config.maxWorkers = args.maxWorkers;
5858
config.server.port = args.port;
5959
config.reporter = reporter;
60+
config.resetCache = args.resetCache;
6061
config.server.enhanceMiddleware = middleware =>
6162
middlewareManager.getConnectInstance().use(middleware);
6263

0 commit comments

Comments
 (0)