Skip to content

fix: better support for ESM#236

Open
Codpoe wants to merge 3 commits intostaylor:mainfrom
Codpoe:main
Open

fix: better support for ESM#236
Codpoe wants to merge 3 commits intostaylor:mainfrom
Codpoe:main

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