Skip to content

Commit

Permalink
fix: await configResolved hooks of worker plugins (#15597)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Jan 15, 2024
1 parent ed56d96 commit 03c8004
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -720,9 +720,11 @@ export async function resolveConfig(
)

// run configResolved hooks
createPluginHookUtils(resolvedWorkerPlugins)
.getSortedPluginHooks('configResolved')
.map((hook) => hook(workerResolved))
await Promise.all(
createPluginHookUtils(resolvedWorkerPlugins)
.getSortedPluginHooks('configResolved')
.map((hook) => hook(workerResolved)),
)

return resolvedWorkerPlugins
}
Expand Down

0 comments on commit 03c8004

Please sign in to comment.