Skip to content

Commit

Permalink
Work around bug inside of Babel
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusU committed Jul 31, 2018
1 parent 7342a45 commit 4e00488
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/metro/src/commands/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module.exports = () => ({
let server = null;
let restarting = false;

async function restart() {
const restart = async () => {
if (restarting) {
return;
} else {
Expand All @@ -71,7 +71,7 @@ module.exports = () => ({
server = await MetroApi.runServer(config, argv);

restarting = false;
}
};

const foundConfig = await resolveConfig(argv.config, argv.cwd);

Expand Down

0 comments on commit 4e00488

Please sign in to comment.