-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat(es/ast): Support import phase #8279
Conversation
998d44d
to
6274871
Compare
How to fix node bindings? |
let is_phase = is_one_of!(self, BindingIdent, '{', '*') | ||
&& (!is!(self, "from") || peeked_is!(self, "from")); |
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.
Is it possible to peek more than one token?
https://github.com/oxc-project/oxc/blob/891d353adeefbd54e56c2ff3e89a49697da0bc5b/crates/oxc_parser/src/js/module.rs#L457
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'll add a method to do so. Also, we need to roll-up AST-breaking changes, so I'll work on #8026 and the setter prop AST thing.
For node bindings, you can do Lines 170 to 175 in 0c05f6e
|
Plugin test failed in node bindings test. IMO it's expected result, right? |
Yes, it's expected |
0ce55c3
to
69332c7
Compare
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.
Thank you! I'll merge this when other AST-breaking changes are ready.
swc-bump:
- swc_common
- swc_ecma_ast --breaking
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.
Can you rebase it with the dev
branch?
swc-bump:
- dbg-swc
329cbed
to
d896998
Compare
done. |
Description: