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

the most goated babel plugin
969 stars 66 forks source link

skrt -> break #52

Closed christina-de-martinez closed 8 months ago

christina-de-martinez commented 8 months ago

Idea from tyler_ai_specialist on Instagram

kyanethmoran commented 8 months ago

Hey :) awesome plugin btw! i saw this issue and it appears to have a conflict with the identifierMappings.js file already stating "PERIODT" is break. is this open issue a conflict or a change to the prexisting codebase?

christina-de-martinez commented 8 months ago

Hey, thanks! Great question. We can map multiple identifiers to the same thing, but not the other way around. So like, PERIODT could turn into break and skrt can also turn into break. (You can see that happening with onGod and noCap—they both transpile to true). But we couldn't have PERIODT turn into both break and return. Let me know if that makes sense?