import { isProduction } from '../env' ; export const warning = ( message ) : void => { if ( ! isProduction ) { const text = `Warning: ${ message }` ; if ( typeof console !== 'undefined' ) { console . warn ( text ) ; } try { throw Error ( text ) ; } catch ( x ) { } } } ;