I had trouble composing another module transformation babel plugin I wrote with this module, and I finally boiled it down to the fact that I was using enter and you were using exit (see here).
Its really more of a question than an issue, was there any particular reason to use exit rather than enter for your code? Since this is a relatively simple transformation, would it make sense to perform it as early as possible so that it is easier to compose? Forgive me if this is a silly question, I have very little experience with babel myself.
I had trouble composing another module transformation babel plugin I wrote with this module, and I finally boiled it down to the fact that I was using
enterand you were usingexit(see here).Its really more of a question than an issue, was there any particular reason to use
exitrather thanenterfor your code? Since this is a relatively simple transformation, would it make sense to perform it as early as possible so that it is easier to compose? Forgive me if this is a silly question, I have very little experience with babel myself.