-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
🚀 Feature: Ability to import mocha from ESM in the browser #5211
Comments
Could you post a reproduction, please? Mocha does have both ESM and browser support, in theory. But both of those terms are pretty vague without more context.
...and don't forget to fill out the title 🙂 |
Whoops... :-) Here. This doesn't work: https://github.com/brettz9/mocha-no-esm-minimal-test-repro |
👍 makes sense to me. I see no reason why we wouldn't want to enable a proper |
feat: add ESM export; fixes mochajs#5211
Feature Request Checklist
faq
label, but none matched my issue.Overview
Inability to import as ESM module from the browser
Suggested Solution
Include an ESM build
Alternatives
Use Rollup on the file but burdensome for each project. Continue adding separate script tags for Mocha and other projects.
Additional Info
No response
The text was updated successfully, but these errors were encountered: