Added parsing if ignore file and added handling of binary files

This commit is contained in:
eduardruzga
2024-11-25 19:50:01 +02:00
parent 3d2ab89cdc
commit 050bf2028f
4 changed files with 80 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ interface Logger {
setLevel: (level: DebugLevel) => void;
}
let currentLevel: DebugLevel = (import.meta.env.VITE_LOG_LEVEL ?? import.meta.env.DEV) ? 'debug' : 'info';
let currentLevel: DebugLevel = import.meta.env.VITE_LOG_LEVEL ?? import.meta.env.DEV ? 'debug' : 'info';
const isWorker = 'HTMLRewriter' in globalThis;
const supportsColor = !isWorker;