diff --git a/packages/vite/src/node/config.ts b/packages/vite/src/node/config.ts index 5d93c52d200f9e..c02dba5c3c417a 100644 --- a/packages/vite/src/node/config.ts +++ b/packages/vite/src/node/config.ts @@ -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 }