pixi.js
Version:
<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">
17 lines (15 loc) • 410 B
JavaScript
;
let warnCount = 0;
const maxWarnings = 500;
function warn(...args) {
if (warnCount === maxWarnings)
return;
warnCount++;
if (warnCount === maxWarnings) {
console.warn("PixiJS Warning: too many warnings, no more warnings will be reported to the console by PixiJS.");
} else {
console.warn("PixiJS Warning: ", ...args);
}
}
export { warn };
//# sourceMappingURL=warn.mjs.map