Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
major: output ESM for .mjs or "type": "module" builds #720
major: output ESM for .mjs or "type": "module" builds #720
Changes from 20 commits
1ccdd50
3808d04
595b92f
42098d2
adba554
bfdbbc4
62128ff
33d17dc
696cb75
cfa7e2f
b095409
0a86107
cb1a8a3
baaa12c
ccd57ba
369ac30
1ee927e
4758297
8c557aa
d71b185
c6d63a2
c33e2ac
c01d291
981e853
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious why you didn't decide to preserve the extension of the input file?
I would expect this:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Style we do keep the extension so that
.cjs
->.cjs
and.mjs
->.mjs
. The issue with.js
is that it will be read by webpack as supporting both CJS and ESM, so isn't enough information on its own, hence the boundary check.