How to publish ES modules? #2
Answered
by
call3hudson
kamaalsultan
asked this question in
Q&A
-
|
What is the best way to publish NPM Packages as Native ES Modules? |
Beta Was this translation helpful? Give feedback.
Answered by
call3hudson
Oct 6, 2023
Replies: 1 comment
-
|
Here are several steps to follow:
Then let it go, publish your package to the NPM registry as usual. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kamaalsultan
Sign up for free
to 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.