christina-de-martinez / babel-plugin-glowup-vibes

the most goated babel plugin
969 stars 66 forks source link

Add try/catch/finally syntax #25

Open henrikvtcodes opened 9 months ago

henrikvtcodes commented 9 months ago

This PR is inspired by this tweet proposing the best glowup for try/catch syntax.

henrikvtcodes commented 8 months ago

Did this work when you tested it?

I'll be honest - I haven't tested this. I will do so and update the PR once I have. I am sure you're right about it being not quite as simple as just adding it to the indentifierMappings object.

christina-de-martinez commented 8 months ago

@henrikvtcodes ok no worries! I have no idea what your background is, so in case you haven't worked on a babel plugin before, I found this video with Laurie Barth to be super helpful: https://youtu.be/aK6n0pYcOe8 She also shows how to use that AST Explorer tool that I sent a link to.

If you get stuck or discouraged or anything, comment back on this PR and we can all try to figure it out together.