Add logjam example

This commit is contained in:
Steve Kinney
2024-09-30 11:59:33 -06:00
parent dc318c10ee
commit 0177b1be0d
6 changed files with 71 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
/// <reference types="vite/client" />
export function log(...args) {
if (import.meta.env.MODE !== 'production') {
console.log(...args);
}
}
log.error = function error(...args) {
if (import.meta.env.MODE !== 'production') {
console.log(...args);
}
};
log.warn = function warn(...args) {
if (import.meta.env.MODE !== 'production') {
console.warn(...args);
}
};