When writing a typescript plug-in, you can get the compiled code or objects of ast when you visitor.

problem description

ts when parsing jsx , you can get the attribute object when you visitor. How can you ast the compiled code or object

the environmental background of the problems and what methods you have tried

related codes

questions such as questions

example:

<div what={w} a={"true"}>
</div>

visitor

{
    what: w,
    a: "true"
}
Apr.05,2021
Menu