This commit is contained in:
Andrew Pimenov 2026-10-07 04:07:49 +00:00 • committed by GitHub
commit 9d8cce4bea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 3 deletions

View file

@ -1,5 +1,11 @@
export const logger = {
info: (...args: any[]) => console.info(...args),
warn: (...args: any[]) => console.warn(...args),
error: (...args: any[]) => console.error(...args),
info: (...args: any[]) => {
if (import.meta.env.DEV) console.info(...args);
},
warn: (...args: any[]) => {
if (import.meta.env.DEV) console.warn(...args);
},
error: (...args: any[]) => {
if (import.meta.env.DEV) console.error(...args);
},
};

1
src/vite-env.d.ts vendored Normal file
View file

@ -0,0 +1 @@
/// <reference types="vite/client" />