export const safeRequire = ( path , silent ? ) => { try { return require ( path ) ; } catch ( error ) { if ( ! silent ) { console . error ( `Require for path ${ path } failed` , error ) ; } return { } ; } } ; export const safeRequireResolve = ( path , silent ? ) => { try { return require . resolve ( path ) ; } catch ( error ) { if ( ! silent ) { console . error ( `Require for path ${ path } failed` , error ) ; } return '' ; } } ;