Skip to content

Commit

Permalink
fix(optimizer): log dependencies added by plugins (#16729)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre authored May 27, 2024
1 parent 8f16765 commit f0fb987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/node/optimizer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0fb987

Please sign in to comment.