vuejs / babel-plugin-jsx

JSX for Vue 3

Home Page:https://vue-jsx-explorer.netlify.app

Repository from Github https://github.comvuejs/babel-plugin-jsxRepository from Github https://github.comvuejs/babel-plugin-jsx

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

hnustwjj opened this issue Β· comments

commented

🧐 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

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.