@pixi/react
Version:
Write PixiJS applications using React declarative style.
21 lines (19 loc) • 594 B
JavaScript
;
function invariant(condition, format, ...args) {
if (process.env.NODE_ENV === "production") {
return;
}
if (!condition) {
let error;
if (format === void 0) {
error = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
} else {
let argIndex = 0;
error = new Error(format.replace(/%s/g, () => String(args[argIndex++])));
error.name = "Invariant Violation";
}
throw error;
}
}
export { invariant };
//# sourceMappingURL=invariant.mjs.map