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

feat: add ESM export #5221

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

feat: add ESM export #5221

wants to merge 2 commits into from

Conversation

brettz9
Copy link

@brettz9 brettz9 commented Oct 8, 2024

PR Checklist

Overview

Adds an ESM export through a new mocha.mjs file (making the regular file to be ESM would be a breaking change). It is not entirely modular, as the base script still sets a global Mocha and mocha, but it does export mocha.

@brettz9 brettz9 changed the title feat: add ESM export; fixes #5211 feat: add ESM export Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🚀 Feature: Ability to import mocha from ESM in the browser
1 participant