From 3e31de3742c44fe3de8ab29a42d196a8b1019a61 Mon Sep 17 00:00:00 2001 From: Evan You Date: Sat, 3 Nov 2018 05:36:51 +0900 Subject: [PATCH] chore: fix warning newline --- packages/runtime-core/src/warning.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()