Open brettz9 opened 2 months ago
Inability to import as ESM module from the browser
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.
🚀 Feature:
...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 import
for Mocha rather than relying on a global. Heck, I'd probably encourage users to use the import
!
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