Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: force microbundler to inline and transpile ethr-did-resolver #304

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

phanshiyu
Copy link
Contributor

Why

The ESM build of ethr-did-resolver seems to be mixing cjs, which will fail in esm only environments. Something like that decentralized-identity/ethr-did-resolver#186.

What

Ideally ethr-did-resolver should be rebuilt to only contain ESM code, but since we have no control over that and I do not want to fork them, we can inline the code directly during bundling, this is done by shifting ethr-did-resolver to dev deps (a microbundler behaviour).

@phanshiyu phanshiyu merged commit c0ca232 into master Sep 19, 2024
6 checks passed
@phanshiyu phanshiyu deleted the fix/ethr-did-resolver-esm-mixing-cjs branch September 19, 2024 03:38
phanshiyu added a commit that referenced this pull request Sep 19, 2024
@phanshiyu phanshiyu restored the fix/ethr-did-resolver-esm-mixing-cjs branch September 19, 2024 03:38
Copy link
Contributor

🎉 This PR is included in version 9.3.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants