Skip to content

Commit 07106fa

Browse files
committed
Remove nested await parens
1 parent f356376 commit 07106fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-router-dev/vite/plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2814,8 +2814,8 @@ async function handlePrerender(
28142814
concurrency = prerender.unstable_concurrency ?? 1;
28152815
}
28162816

2817-
const pMap = (await import("p-map")).default;
2818-
await pMap(build.prerender, prerenderSinglePath, { concurrency });
2817+
const pMap = await import("p-map");
2818+
await pMap.default(build.prerender, prerenderSinglePath, { concurrency });
28192819
}
28202820

28212821
function getStaticPrerenderPaths(routes: DataRouteObject[]) {

0 commit comments

Comments
 (0)