Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
parallelize exports
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Jul 31, 2018
1 parent e3ddbfc commit eae991d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/api/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ async function execute(emitter: EventEmitter, {
}
});

for (const url of urls) {
await handle(url);
}
await Promise.all(urls.map(handle));
}
}
}
Expand Down

0 comments on commit eae991d

Please sign in to comment.