Skip to content

Commit

Permalink
Simplify expression: invoke Object.entries instead of using an equiva…
Browse files Browse the repository at this point in the history
…lent map expression

Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
  • Loading branch information
jayaddison and nicolo-ribaudo committed Jul 21, 2020
1 parent e50df93 commit 8cc9106
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const blockHoistPlugin = {
: undefined;
const stabilityMap =
!nodeVersion || nodeVersion < 12
? new Map(node.body.map((n, idx) => [n, idx]))
? new Map(node.body.entries())
: null;
const priority = node => {
if (node?._blockHoist == null) return -1;
Expand Down

0 comments on commit 8cc9106

Please sign in to comment.