-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Can we get the UMD builds back in the /dist folder? #3814
Comments
I think that should be pretty easy to add. I can try adding it to the rollup config tomorrow. I’d figured UMD was not widely used anymore, so I didn’t bother. :) |
I package apps for deployment to IPFS, and I prefer to publish a common library file because it then shares the same hash as anyone else using it. If I use build scripts to integrate it into one custom bundle than the hash is unique everytime. Anyway, appreciate you looking into it. |
I've added this in v6.0.6. Try it out and let me know if it works for you. Thanks! :) |
Works great. Thanks! |
I just learnt a new trick, how to load ESM modules in the browser. Which means I no longer need the UMD builds :) |
@ricmoo I would vote for rolling back the addition. It increases bundle size and ESM can be freely imported by folks in browsers. Bundlers allow folks to compile ESM to commonjs when necessary (Electron). This simply increases bundle size and delays switching people to ESM. UMD builds can be brought back if enough folks ask for it again. |
Once a feature is added, I tend to it want to break backwards compatibility without a good reason. What is wrong with offering it? It has zero impact on people using bundlers, since they will use the normal entry points, into the relevant The dist builds are only meaningfully available in the repo and on cdnjs. |
|
I still use UMD version.
Practical for quick demos. I see no harm. |
The UMD will remain in v6. I don’t like breaking backwards compatibility without significant justification. :) |
Ethers Version
6.0.5
Search Terms
umd build
Describe the Problem
The previous version included UMD builds that could be loaded directly into a browser. 6.x doesn't appear to include them anymore.
Code Snippet
No response
Contract ABI
No response
Errors
No response
Environment
No response
Environment (Other)
No response
The text was updated successfully, but these errors were encountered: