From df33474730b2ed1934815f7d427efc634705a20c Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 17 Dec 2021 09:08:09 +0000 Subject: [PATCH] fix(vite): log error object (#2420) --- packages/vite/src/dev-bundler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/dev-bundler.ts b/packages/vite/src/dev-bundler.ts index 9c4379c817..753291af44 100644 --- a/packages/vite/src/dev-bundler.ts +++ b/packages/vite/src/dev-bundler.ts @@ -80,7 +80,7 @@ async function transformRequest (opts: TransformOptions, id: string) { // Transform const res: SSRTransformResult = await opts.viteServer.transformRequest(id, { ssr: true }).catch((err) => { // eslint-disable-next-line no-console - console.warn(`[SSR] Error transforming ${id}: ${err}`) + console.warn(`[SSR] Error transforming ${id}:`, err) // console.error(err) }) as SSRTransformResult || { code: '', map: {}, deps: [], dynamicDeps: [] }