unjs / magicast

🧀 Programmatically modify JavaScript and TypeScript source codes with a simplified, elegant and familiar syntax powered by recast and babel.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support satisfies keyword

thdxr opened this issue · comments

commented

Describe the feature

Looks like it throws an error when it encounters the satisfies keyword currently

can probably just ignore it for now would unblock me

Additional information

  • Would you be willing to help implement this feature?

Upstream issue: benjamn/recast#1281

Try npm i recast@next? benjamn/recast#1281 (comment)

I'm not sure what's exactly the difference but it seems that perhaps this issue here wasn't exactly blocked by recast. I opened a PR with a fix and some basic tests without updating recast: #55