How to wrap all toplevel statements and declarations except imports in jscodeshift?

后端 未结 0 1980
逝去的感伤
逝去的感伤 2021-01-29 09:29

I have this AST explorer snippet which almost lets me do what I want, which is to turn this:

function bar() {return 42;}
va         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题