Big idea: Interpret babel config #2906
Replies: 1 comment 3 replies
-
I've been thinking this idea bit as well. This'll obviously can help to reduce some migration churn. But also problem is if application is reasonably small enough it'll be straightforward config conversion can be done in a short time, in opposite if application is large enough it'll have a lot of custom configs / plugins may not able to replicated automatically. The closest model I can think of is something like https://github.com/typescript-eslint/tslint-to-eslint-config.
While SWC is close drop-in replacement to babel even for today, probably we can't make 1:1 corresponding configs. As long as tool can notify those to users it'd be probably fine though. Probably worth for a userland implementation? |
Beta Was this translation helpful? Give feedback.
-
A lot of big projects have custom babel config, which is not allowing them to use SWC (for example, some large scale Next.js apps have babel config so they can't use SWC). In order to promote usage, and this has a very low-priority due to it essentially having to support everything babel can do, it interprets the Babel config and runs it via SWC. This would mean you get the speed of SWC whilst having the good config from Babel.
Just a little idea I had, and I didn't see anything about it so I thought I'd make this. This doesn't need priority or anything, and is probably a late term goal.
Beta Was this translation helpful? Give feedback.
All reactions