Skip to content

🐛 Fix ESM support #25

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

Merged
merged 2 commits into from
Apr 27, 2022
Merged

🐛 Fix ESM support #25

merged 2 commits into from
Apr 27, 2022

Conversation

lmachens
Copy link
Contributor

I faced the issue that I could not import this module as ESM.
After some research, I think it's related to missing package.json to specify type in the distributions.
See https://www.sensedeep.com/blog/posts/2021/how-to-create-single-source-npm-module.html for an example.

This pull request adds package.json in the dist folders with module commonjs/module.

openapi-typescript-fetch targets a fork until this is resolved:
ajaishankar/openapi-typescript-fetch#24

@lmachens lmachens merged commit f64dd3c into main Apr 27, 2022
@lmachens lmachens deleted the fix/esm branch April 27, 2022 07:35
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.

2 participants