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: replace .mjs with .js extension for browser modules #887

Merged
merged 1 commit into from
Jan 12, 2024
Merged

Conversation

steabert
Copy link
Member

The Babel interpretation should be used when modules are imported for the browser, which is not the case if the extension is .mjs (in which case Node interpretation is used). See https://esbuild.github.io/content-types/#default-interop

Checklist for review

  • PR title and description are clear
  • change follows existing coding style and architecture
  • necessary unit tests were added
  • documentation was updated

The Babel interpretation should be used when modules are
imported for the browser, which is not the case if the
extension is .mjs (in which case Node interpretation is used).
See https://esbuild.github.io/content-types/#default-interop
@steabert steabert self-assigned this Jan 12, 2024
@steabert steabert requested a review from danielkaxis January 12, 2024 14:07
@steabert steabert merged commit 4a67ac8 into main Jan 12, 2024
7 checks passed
@steabert steabert deleted the fix-mjs branch January 12, 2024 14:23
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.

2 participants