Add ESM support #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "pm-esm"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Here is the first PR we discussed.
The idea is to not touch the existing code but to generate the ESM version using rollup. The generated ESM version is included in the NPM package before releasing it. The
modulefield is added to package.json for automatic detection by common tools.@marijnh Please let me know what you think.
Thanks, works for me (though I'd have gone from an ES6 source file to a cjs output file). Published as 1.1.0.
Great, thanks (even if the code base is small, I use to write code in TypeScript and Java, so generating the ESM version was less error-prone and saved some time).