Files
SerpentRace/node_modules/motion-utils/dist/es/errors.mjs
T
2025-08-23 00:05:18 +02:00

17 lines
390 B
JavaScript

let warning = () => { };
let invariant = () => { };
if (process.env.NODE_ENV !== "production") {
warning = (check, message) => {
if (!check && typeof console !== "undefined") {
console.warn(message);
}
};
invariant = (check, message) => {
if (!check) {
throw new Error(message);
}
};
}
export { invariant, warning };