How to publish ES modules? #2
Answered
bycall3hudson
kamaalsultan
asked this question in
Q&A
What is the best way to publish NPM Packages as Native ES Modules? |
Answered by
call3hudson
Oct 6, 2023
Replies: 1 comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Here are several steps to follow:
Then let it go, publish your package to the NPM registry as usual. |
0 replies
Answer selected bykamaalsultan
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Here are several steps to follow:
If your package has a main entry point, you can use the "exports" field in your package.json file to specify the ESM entry point.
Then let it go, publish your package to the NPM registry as usual.