mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(vite): log error object (#2420)
This commit is contained in:
parent
23397e603c
commit
df33474730
@ -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: [] }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user