Skip to content

Commit ef89f80

Browse files
fix: await configResolved hooks of worker plugins (#15597) (#15605)
Co-authored-by: Alec Larson <1925840+aleclarson@users.noreply.github.com>
1 parent b44c493 commit ef89f80

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/vite/src/node/config.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -718,9 +718,11 @@ export async function resolveConfig(
718718
)
719719

720720
// run configResolved hooks
721-
createPluginHookUtils(resolvedWorkerPlugins)
722-
.getSortedPluginHooks('configResolved')
723-
.map((hook) => hook(workerResolved))
721+
await Promise.all(
722+
createPluginHookUtils(resolvedWorkerPlugins)
723+
.getSortedPluginHooks('configResolved')
724+
.map((hook) => hook(workerResolved)),
725+
)
724726

725727
return resolvedWorkerPlugins
726728
}

0 commit comments

Comments
 (0)