Files
Gemini-Search/node_modules/motion-utils/lib/errors.js
Ammaar Reshi d6025af146 Initial commit
2025-01-04 14:06:53 +00:00

17 lines
444 B
JavaScript

import { noop } from "./noop";
let warning = noop;
let invariant = noop;
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 { warning, invariant };
//# sourceMappingURL=errors.js.map