Vollständiges Redesign mit Gold-Formularen, BMP-Logo, multi-step Forms (Bewerbung, Kontakt, Sponsoring), Netlify-Deployment. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
615 B
JavaScript
21 lines
615 B
JavaScript
import { formatErrorMessage } from './format-error-message.mjs';
|
|
|
|
let warning = () => { };
|
|
let invariant = () => { };
|
|
if (typeof process !== "undefined" &&
|
|
process.env?.NODE_ENV !== "production") {
|
|
warning = (check, message, errorCode) => {
|
|
if (!check && typeof console !== "undefined") {
|
|
console.warn(formatErrorMessage(message, errorCode));
|
|
}
|
|
};
|
|
invariant = (check, message, errorCode) => {
|
|
if (!check) {
|
|
throw new Error(formatErrorMessage(message, errorCode));
|
|
}
|
|
};
|
|
}
|
|
|
|
export { invariant, warning };
|
|
//# sourceMappingURL=errors.mjs.map
|