magic-regexp icon indicating copy to clipboard operation
magic-regexp copied to clipboard

Babel plugin transformer

Open bryanmylee opened this issue 11 months ago • 1 comments

🆒 Your use case

I'm currently using this wonderful library via the runtime on an Expo project which uses the Metro/Babel bundler/transformer.

I'm wondering if there is a supported way to apply the magic-regexp transformer to Babel that I'm missing.

If not, I'm wondering how easy it would be to adapt the current transformers to do so, or whether it's even possible.

I would love to contribute either documentation or a new transformer for this project.

🔍 Alternatives you've considered

No response

ℹ️ Additional info

No response

bryanmylee avatar Dec 09 '24 05:12 bryanmylee

I'd love to support this, too. And thanks for the kind words.

It won't be possible with unplugin (https://github.com/unjs/unplugin/issues/320) but we could reuse much of the same logic to export a babel plugin.

danielroe avatar Dec 10 '24 21:12 danielroe