Make it support `cjs` and `esm`. Let's fast-forward to ESM. If this is allowed, please let me know and I'd be happy to make a PR