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

fix: copy files to mjs for node compat #58

Merged
merged 2 commits into from
May 24, 2022
Merged

Conversation

JoviDeCroock
Copy link
Member

What:

Fix the node compat by adding mjs for the import part of the import maps CC @rschristian

How:

We copy the files over from esm/*.js to esm/*.mjs

Checklist:

  • Documentation added
  • Tests
  • Typescript definitions updated
  • Ready to be merged

@rschristian
Copy link
Contributor

rschristian commented May 24, 2022

Just curious, what's the reason for "browser"? AFAIK .mjs is totally fine in every browser, and it's not a different bundle to "import".

LGTM anyways! Thanks!

@JoviDeCroock
Copy link
Member Author

@rschristian I thought .mjs as an extension was only accepted recently for browsers

@JoviDeCroock JoviDeCroock merged commit 1f98518 into master May 24, 2022
@rschristian
Copy link
Contributor

~3/4 years I think, going by a bugzilla entry (though I cannot find a caniuse or MDN entry, so dunno).

@github-actions
Copy link

🎉 This PR is included in version 3.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants