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

feat: Add ESM #775

Merged
merged 5 commits into from
Apr 1, 2022
Merged

feat: Add ESM #775

merged 5 commits into from
Apr 1, 2022

Conversation

fb55
Copy link
Owner

@fb55 fb55 commented Apr 1, 2022

Entities will now ship as both a CJS and an ESM module.

Fixes #500.

fb55 added 5 commits April 1, 2022 21:19
We need an import assertion. Also, updates the path so we don't duplicate the encode map.
Imported directly by htmlparser2. Added `decodeCodePoint` to the re-exported variables, as it is also used by htmlparser2.
@fb55 fb55 merged commit 2b2fbeb into master Apr 1, 2022
@fb55 fb55 deleted the feat/esm branch April 1, 2022 21:17
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.

Please provide an ECMAScript module
1 participant