Skip to content
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

Support optional chaining. #267

Open
wxsms opened this issue Jan 5, 2021 · 5 comments
Open

Support optional chaining. #267

wxsms opened this issue Jan 5, 2021 · 5 comments

Comments

@wxsms
Copy link

wxsms commented Jan 5, 2021

https://github.com/tc39/proposal-optional-chaining

@curran
Copy link
Contributor

curran commented Jul 14, 2021

What would it take to make Buble work with optional chaining?

I'm interesting in not transforming it, but just allowing the syntax in code passed through Buble.

I see that support landed in Acorn for optional chaining https://github.com/acornjs/acorn/blob/master/acorn/CHANGELOG.md#730-2020-06-11

@curran
Copy link
Contributor

curran commented Jul 14, 2021

I added a failing test for optional chaining here #274

@curran
Copy link
Contributor

curran commented Jul 14, 2021

Added the same test here, where I did manage to upgrade acorn and acorn-jsx to the latest.

vizhub-core#4

    "acorn": "^8.4.1",
    "acorn-jsx": "^5.3.2",

The test still fails. I have no idea why.

I also added a test to acorn-jsx (just locally) and it passed, so it appears acorn-jsx and acorn really do support optional chaining.

@curran
Copy link
Contributor

curran commented Jan 26, 2022

Still interested in this in 2022!

@Amanghvxh
Copy link

is this live or have not implemented yet? and can anyone tell me what can I use to compile my jsx to javascript? i used bable and it is not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants