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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] how to make vue jsx ast return to jsx #705

Closed
hnustwjj opened this issue Apr 15, 2024 · 1 comment
Closed

[Question] how to make vue jsx ast return to jsx #705

hnustwjj opened this issue Apr 15, 2024 · 1 comment
Labels
question Further information is requested

Comments

@hnustwjj
Copy link

馃 Problem Description

I want to make some changes to the vue jsx code through babel. I want to know whether the ast of vue jsx can be converted back to jsx. Or can you provide me with some ideas?

image

馃捇 Sample code

馃殤 Other information

@hnustwjj hnustwjj added the question Further information is requested label Apr 15, 2024
@sxzz
Copy link
Member

sxzz commented May 26, 2024

Vue JSX syntax is standard JSX syntax. Therefore, you can use general toolchains.

For example, you can use @babel/parser and @babel/generator to parse the AST and generate code.

@sxzz sxzz closed this as not planned Won't fix, can't repro, duplicate, stale May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants