UNPKG

@girders-elements/core

Version:

Girders Elements is an architectural framework that assists with building data-driven apps with React or React Native.

48 lines (30 loc) 843 B
'use strict';Object.defineProperty(exports,"__esModule",{value:true}); function _info(msg){ if(typeof console!==undefined){ if(console.log!=null){ console.log(msg); } } } function _warning(msg){ if(typeof console!==undefined){ if(console.warn!=null){ console.warn(msg); }else if(console.error!=null){ console.error(msg); } } } function _error(msg,error){ if(typeof console!==undefined){ if(console.error!=null){ console.error(msg,error); } } } function _noop(){} var info=void 0,error=void 0,warning=void 0; var NODE_ENV=process.env.NODE_ENV; if(NODE_ENV!=='production'&&NODE_ENV!=='test'){ exports. info=info=_info;exports.error=error=_error;exports.warning=warning=_warning;}else{exports.info=info=_noop;exports.error=error=_noop;exports.warning=warning=_noop;}exports.info=info;exports.error=error;exports.warning=warning;