export const PHash = ( ( ) => { try { return require ( 'phash2' ) ; } catch ( err ) { console . warn ( `Failed to load phash library, disabling functionality: ${ err . message }` ) ; return undefined ; } } ) ( ) ; export default PHash ;