Fix issue to allow module block in member expression#13573
Fix issue to allow module block in member expression#13573JLHwung merged 8 commits intobabel:mainfrom
Conversation
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/47410/ |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 1c04552:
|
There was a problem hiding this comment.
Not a blocker: After this PR, we can further remove the module lookahead. Like how we are handling async function and async x =>, we can parse the module as an id and when we see a left curly brace, we can reuse the id node and then finished as a ModuleExpression.
|
Can you delete the |
|
@nicolo-ribaudo done. I removed the |
|
The CI error is unrelated and has been fixed in #13567. |
* Accept module in primaryExpression * Add module blocks to primaryExpression * Fix package.json * Fix yarn.lock * Fix yarn.lock * Remove package.tgz file
Moved the logic to check for
module {}in babel-parser fromParser#parseMaybeUnarytoParser#parseExprAtomwithin thett.nametoken.