Skip to content
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

Add ESM support #5

Merged
merged 1 commit into from Nov 7, 2019
Merged

Add ESM support #5

merged 1 commit into from Nov 7, 2019

Conversation

lpellegr
Copy link
Contributor

@lpellegr lpellegr commented Nov 7, 2019

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 module field is added to package.json for automatic detection by common tools.

@lpellegr
Copy link
Contributor Author

lpellegr commented Nov 7, 2019

@marijnh Please let me know what you think.

@marijnh marijnh merged commit 0d9b475 into marijnh:master Nov 7, 2019
@marijnh
Copy link
Owner

marijnh commented Nov 7, 2019

Thanks, works for me (though I'd have gone from an ES6 source file to a cjs output file). Published as 1.1.0.

@lpellegr lpellegr deleted the pm-esm branch November 7, 2019 20:21
@lpellegr
Copy link
Contributor Author

lpellegr commented Nov 7, 2019

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).

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.

None yet

2 participants