Files
NapCatQQ/.pnpm-store/v3/files/8e/11c341f84a9b4024d83778ae64e12a834dc2278a0b23bf4ef2a2d4ce9bede870a66e7467dbb268d80914e40cae5bf33efa95a3843b2b6bb53c6f659eeec09f
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

16 lines
404 B
Plaintext

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