Skip to content

Commit

Permalink
Enable metro hmr server in local-cli (#20605)
Browse files Browse the repository at this point in the history
Summary:
The `hmrEnabled` flag was not passed to the metro runServer config which caused HMR to be broken.
Pull Request resolved: #20605

Differential Revision: D9272070

Pulled By: hramos

fbshipit-source-id: 3765031d9e7806be11781fba92663ce7c4ff2ffb
  • Loading branch information
janicduplessis authored and facebook-github-bot committed Aug 10, 2018
1 parent e0465bf commit 5892d5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions local-cli/server/runServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ async function runServer(args: Args, config: ConfigT) {
secure: args.https,
secureCert: args.cert,
secureKey: args.key,
hmrEnabled: true,
});

const wsProxy = webSocketProxy.attachToServer(
Expand Down

0 comments on commit 5892d5c

Please sign in to comment.