diff --git a/packages/vite/src/node/config.ts b/packages/vite/src/node/config.ts index a8d61f03a5a090..eaa2e010149fcd 100644 --- a/packages/vite/src/node/config.ts +++ b/packages/vite/src/node/config.ts @@ -718,9 +718,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 }