Closed hnustwjj closed 1 month ago
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?
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.
@babel/parser
@babel/generator
🧐 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?
💻 Sample code
🚑 Other information