Skip to content

Commit 3fde549

Browse files
committed
fix(vite): update ellipsis formatting in log truncation for consistency\n\n- Changed ellipsis from '…' to '...' in log truncation to ensure uniformity in log output.
1 parent 907d466 commit 3fde549

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/vite/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function attachMiddleware(server: any, options: ResolvedOptions) {
215215
const level = normalizeLevel(entry.level);
216216
const tag = entry.tag || options.tag;
217217
const truncated = typeof entry.text === 'string' && entry.text.length > options.truncate
218-
? entry.text.slice(0, options.truncate) + ' (truncated)'
218+
? entry.text.slice(0, options.truncate) + '... (truncated)'
219219
: entry.text;
220220
let line = `${tag} [${sid}] ${level.toUpperCase()}: ${truncated}`;
221221
if (options.showSource && entry.source) line += ` (${entry.source})`;

0 commit comments

Comments
 (0)