woltapp/blurhash

Package as ES6 Module (ESM)

benmccann opened this issue · 3 comments

The modern way to package JavaScript libraries is as ES6 modules. Unbundled development tools like Snowpack and Vite only work with ESM. While they can accept the CommonJS format that Blurhash provides today, they must first convert the package to ESM which makes it take longer for your development server to startup

It turns out there's already a PR for this: #58. It's a pretty simple PR and looks good to me. Would we possibly be able to get it merged?

#58 was merged.