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: better support for ESM #236

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

fix: better support for ESM #236

wants to merge 3 commits into from

Conversation

Codpoe
Copy link

@Codpoe Codpoe commented Oct 16, 2024

  • Modify the extension of the esm output file to mjs, so that nodejs can correctly recognize the ES module, and this does not require modifying the package.json type to "module".
  • Added conditional exports to support use in both cjs and esm

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.

1 participant