woltapp / blurhash

A very compact representation of a placeholder for an image.
https://blurha.sh
MIT License
15.65k stars 353 forks source link

Add `exports.browser.require` #234

Closed vluoto closed 1 year ago

vluoto commented 1 year ago

This will allow tools like Jest – when used in conjunction with jest-environment-jsdom – to grab the CommonJS variant of the package when looking for the browser entry point.

This will make whitelisting blurhash in Jest's transformIgnorePatterns redundant.