unjs/magicast

`parseModule` and `parseExpression`

antfu opened this issue · 0 comments

antfu commented

Currently our parseCode only expects module to be parsed. I think it could be useful to be able to also parse expressions, to update an object only etc. In that sense, we could rename parseCode to parseModule to be more explicit.