-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
ESM types are wrong #205
Labels
Comments
5 tasks
@vitalijalbu do you mind opening a new issue? |
Repository owner
locked as resolved and limited conversation to collaborators
Oct 2, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Expected Behavior
Be able to use the default normally from ESM.
Actual Behavior
The CJS types are specified for ESM users.
But the CJS types are for CJS, not for ESM.
Steps to Reproduce
Should be possible to reproduce from any ESM file.
Reproducible Demo
syntax-tree/hast-util-to-jsx-runtime@89b9292
Environment
n/a
Keywords
Extra
a) you can drop the root
types
field inpackage.json
b) generate an
esm/index.d.mts
c) you can drop the
exports.types
fields, they are the defaults forcjs/index.js
->cjs/index.d.ts
,esm/index.mjs
->esm/index.d.mts
The text was updated successfully, but these errors were encountered: