mirror of
https://github.com/Horizontal42/summarum.git
synced 2026-11-10 19:11:58 +03:00
Merge 017308e938 into bede889ced
This commit is contained in:
commit
9d8cce4bea
2 changed files with 10 additions and 3 deletions
|
|
@ -1,5 +1,11 @@
|
||||||
export const logger = {
|
export const logger = {
|
||||||
info: (...args: any[]) => console.info(...args),
|
info: (...args: any[]) => {
|
||||||
warn: (...args: any[]) => console.warn(...args),
|
if (import.meta.env.DEV) console.info(...args);
|
||||||
error: (...args: any[]) => console.error(...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
1
src/vite-env.d.ts
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
/// <reference types="vite/client" />
|
||||||
Loading…
Add table
Reference in a new issue