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

ESM support #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

ESM support #30

wants to merge 1 commit into from

Conversation

aderchox
Copy link

Hi, I've added ESM support to this package. Things done in this commit:
- Converts CommonJS module.exports to ESM export using a Rollup plugin
- Adds an ESM import to the example in README.md
- Adds the change in HISTORY.md
- Adds "exports" key in package.json to detect proper export automatically
I don't know Travis CI though, that should probably be updated too so that index.mjs will not be ignored when installing the package using NPM. Thank you.

	- Converts CommonJS module.exports to ESM export using a Rollup plugin
	- Adds an ESM import to the example in README.md
	- Adds the change in HISTORY.md
	- Adds "exports" key in package.json to detect proper export automatically
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.

1 participant