Expose wether a module has TLA or not as .extra.async#16480
Merged
nicolo-ribaudo merged 7 commits intobabel:mainfrom Jul 26, 2024
Merged
Expose wether a module has TLA or not as .extra.async#16480nicolo-ribaudo merged 7 commits intobabel:mainfrom
.extra.async#16480nicolo-ribaudo merged 7 commits intobabel:mainfrom
Conversation
Collaborator
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/57454 |
Member
|
Would it be better to just use |
64070c7 to
0b4799c
Compare
Member
Author
|
Renamed to |
5e72f56 to
d3dd293
Compare
JLHwung
approved these changes
May 9, 2024
Contributor
JLHwung
left a comment
There was a problem hiding this comment.
Can you add a test case for module expressions if there aren't such test? The current implementation should already work.
liuxingbaoyu
approved these changes
May 10, 2024
6116a8d to
ce489d9
Compare
73f6524 to
109e52d
Compare
109e52d to
4ab37b5
Compare
.extra.async
This was referenced Aug 16, 2024
This was referenced Oct 5, 2024
This was referenced Oct 8, 2024
This was referenced Oct 24, 2024
This was referenced Oct 24, 2024
This was referenced Oct 25, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The parser already has this info, and having to detect it by yourself is error prone (due to computed keys and decorators).
We can also use this to warn in the CJS transform when there is top-level await (in a follow-up).