From f0fb9876deef3c66c60a2d0588a140f11a977011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnaud=20Barr=C3=A9?= Date: Mon, 27 May 2024 17:47:35 +0200 Subject: [PATCH] fix(optimizer): log dependencies added by plugins (#16729) --- packages/vite/src/node/optimizer/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vite/src/node/optimizer/index.ts b/packages/vite/src/node/optimizer/index.ts index f8028c070a9c34..5902aa96e9eb4f 100644 --- a/packages/vite/src/node/optimizer/index.ts +++ b/packages/vite/src/node/optimizer/index.ts @@ -260,11 +260,11 @@ export async function optimizeDeps( const deps = await discoverProjectDependencies(config).result + await addManuallyIncludedOptimizeDeps(deps, config, ssr) + const depsString = depsLogString(Object.keys(deps)) log?.(colors.green(`Optimizing dependencies:\n ${depsString}`)) - await addManuallyIncludedOptimizeDeps(deps, config, ssr) - const depsInfo = toDiscoveredDependencies(config, deps, ssr) const result = await runOptimizeDeps(config, depsInfo, ssr).result