GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||
GeezerVison is showing github.com — Expose wether a module has TLA or not as `.extra.async` by nicolo-ribaudo · Pull Request #16480 · babel/babel Conversation
|
| Q | A |
|---|---|
| Fixed Issues? | Fixes #16471 |
| Patch: Bug Fix? | |
| Major: Breaking Change? | |
| Minor: New Feature? | Yes |
| Tests Added + Pass? | Yes |
| Documentation PR Link | |
| Any Dependency Changes? | |
| License | MIT |
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).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/57454 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Would it be better to just use |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
64070c7 to
0b4799c
Compare
|
Renamed to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
5e72f56 to
d3dd293
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test case for module expressions if there aren't such test? The current implementation should already work.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
6116a8d to
ce489d9
Compare
73f6524 to
109e52d
Compare
109e52d to
4ab37b5
Compare
.extra.async
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[parser] Expose somehing likeprogram.extra.async to easily know if a module uses top-level await
There was an error while loading. Please reload this page.