Skip to content

Commit c33bba7

Browse files
committed
feat: update debug log output to match vite 3
1 parent b413156 commit c33bba7

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/utils/debugLog.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1+
const RESET = '\x1b[0m';
2+
const BRIGHT = '\x1b[1m';
3+
const DIM = '\x1b[2m';
4+
const FG_CYAN = '\x1b[36m';
5+
16
export function debugLog(...args: unknown[]) {
2-
const LOG_PREFIX = '\x1b[36m[vite-plugin-graphql-codegen]\x1b[0m' as const;
3-
console.log(LOG_PREFIX, ...args);
7+
const LOG_PREFIX =
8+
` ${FG_CYAN}${BRIGHT}VITE PLUGIN GRAPHQL CODEGEN${RESET} ` as const;
9+
console.log(LOG_PREFIX, DIM, ...args, RESET);
410
}

0 commit comments

Comments
 (0)