2024-06-15 00:55:43 +03:00

20 lines
474 B
JavaScript

// src/console.ts
var warningStack = {};
function warn(message, component, ...args) {
var _a;
const tag = component ? ` [${component}]` : " ";
const log = `[Next UI]${tag}: ${message}`;
if (typeof console === "undefined")
return;
if (warningStack[log])
return;
warningStack[log] = true;
if (((_a = process == null ? void 0 : process.env) == null ? void 0 : _a.NODE_ENV) !== "production") {
return console.warn(log, args);
}
}
export {
warn
};