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

Move to ESM #73

Merged
merged 1 commit into from Feb 13, 2022
Merged

Move to ESM #73

merged 1 commit into from Feb 13, 2022

Conversation

Siilwyn
Copy link
Contributor

@Siilwyn Siilwyn commented Feb 6, 2022

Closes #68

  • Switches from require > import
  • Updated all dependencies
  • Follow new xo and tsd rules
  • Remove namespace from type definition file

Also changed the default export to be a named function, since xo complained about exporting a default anonymous function and I think it is better, opinionated. Let me know what you think!

This is a breaking change, drops support for older Node.js versions.

@Siilwyn Siilwyn changed the title Make the package a ES module type Make the package an ES module type Feb 6, 2022
@sindresorhus sindresorhus changed the title Make the package an ES module type Move to ESM Feb 13, 2022
@sindresorhus sindresorhus merged commit 19e7a3c into sindresorhus:main Feb 13, 2022
@Siilwyn Siilwyn deleted the go-esm branch February 14, 2022 08:57
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.

ESM build to support imports from .mjs files
2 participants