Any examples of maintaining same plugin for babel and swc?
Hey!
I'm trying to think about making an swc compatible plugin for some existing babel plugins, but unfortunately the plugins I'm trying to migrate are quite complex, and long!
One of the concerns about writing a new plugin in rust has been the possibility of behaviour drift as, we can't drop the babel plugins yet for older consumers.
Wondering if:
- there is an easy way to forward the swc plugin to the existing js implementation (I don't think wasm bindgen would keep any performance over native rust)
- there are any other people who have solved a similar challenge before?
The answer might just be to 'maintain both' - which is my current proposal, but wanted to reach out and ask the community 🙂
Thank you!
0 Replies