I'm using it installed from npm in the browser like
import { phash } from 'imagehash-web'
// ...
const hash = await phash(img)
but my site fails to build (using vite) with
SES_UNCAUGHT_EXCEPTION: SyntaxError: The requested module 'http://localhost:8080/node_modules/.vite/deps/imagehash-web.js?v=6d181e42' doesn't provide an export named: 'phash'
Looking in this library's built files, the only mention of phash is one window.phash assignment which is strange
I'm using it installed from npm in the browser like
but my site fails to build (using vite) with
Looking in this library's built files, the only mention of
phashis onewindow.phashassignment which is strange