From c1fa219f7da09d8fca0140c79e62dbce6d54b0e5 Mon Sep 17 00:00:00 2001 From: hemengke <49073282+hemengke1997@users.noreply.github.com> Date: Sun, 7 Aug 2022 20:00:45 +0800 Subject: [PATCH] fix: log worker plugins in debug mode (#9553) --- packages/vite/src/node/config.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/vite/src/node/config.ts b/packages/vite/src/node/config.ts index c2a60cb674b5be..ef6f95a487ac14 100644 --- a/packages/vite/src/node/config.ts +++ b/packages/vite/src/node/config.ts @@ -734,7 +734,11 @@ export async function resolveConfig( if (process.env.DEBUG) { debug(`using resolved config: %O`, { ...resolved, - plugins: resolved.plugins.map((p) => p.name) + plugins: resolved.plugins.map((p) => p.name), + worker: { + ...resolved.worker, + plugins: resolved.worker.plugins.map((p) => p.name) + } }) }