@pixi/react
Version:
Write PixiJS applications using React declarative style.
18 lines (15 loc) • 384 B
JavaScript
import { store } from '../store.mjs';
;
function log(logType, ...args) {
if (!store.debug) {
return;
}
const logMethod = console[logType];
if (!(logMethod instanceof Function)) {
console.warn(`Attempted to create an invalid log type: "${logType}"`);
return;
}
logMethod("@pixi/react", ...args);
}
export { log };
//# sourceMappingURL=log.mjs.map