export const OBFUSCATED_ERROR = 'An invariant failed, however the error is obfuscated because this is an production build.' ; export function invariant ( check , message ? ) { if ( ! check ) throw new Error ( `[turbox]: ${ message || OBFUSCATED_ERROR }` ) ; } export function fail ( message ) { invariant ( false , message ) ; throw 'X' ; } export function warn ( message ) { console . warn ( `[turbox]: ${ message }` ) ; }