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 #478

Merged
merged 1 commit into from
Nov 8, 2024
Merged

ESM #478

merged 1 commit into from
Nov 8, 2024

Conversation

smorimoto
Copy link
Member

No description provided.

Signed-off-by: Sora Morimoto <[email protected]>
@smorimoto smorimoto merged commit 09b0b77 into main Nov 8, 2024
4 checks passed
@smorimoto smorimoto deleted the esm branch November 8, 2024 20:22
@@ -6,6 +6,7 @@
"type": "git",
"url": "https://github.com/tc39/tc39.github.io.git"
},
"type": "module",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would have been better to make the files .mjs instead of using type module, ftr

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm? Why?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All type module does is change the parse goal of .js; it's not required for ESM, and using a .mjs extension may even be faster because the looking up the type field takes time.

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