[v2] Refactor configuration API
Context:
https://github.com/swc-project/swc/issues/5720#issuecomment-1236054505
I think something like starlark, which has well-defined semantics, would be much better for users.
Tasks
- [ ] Remove support for arrays in
.swcrc - [ ] Determine configurations to remove
- [ ] Investigate configuration languages like starlark
cc @kwonoj
@kwonoj Are you going to provide alternative if you remove support for arrays in your next release
Remove support for arrays in .swcrc
This never worked correctly, so no at this moment until we have proper RFC to satisfy most of usecases.
@kwonoj Is there any way I can use multiple parsers in swc config then?
Use different config file, or use different config object per calling transform API.
Please do not use this meta issue for asking individual questions.
So any plans to add "extends" ? Will be super useful with monorepos though!
I like the idea of extends. @swc-project/core Any thoughts?