diff --git a/packages/runtime-core/src/warning.ts b/packages/runtime-core/src/warning.ts index 9dcec753..deea72d2 100644 --- a/packages/runtime-core/src/warning.ts +++ b/packages/runtime-core/src/warning.ts @@ -31,7 +31,7 @@ export function warn(msg: string, ...args: any[]) { console.groupCollapsed('at', ...formatTraceEntry(trace[0])) const logs: string[] = [] trace.slice(1).forEach((entry, i) => { - logs.push(...formatTraceEntry(entry, i + 1)) + logs.push('\n', ...formatTraceEntry(entry, i + 1)) }) console.log(...logs) console.groupEnd()