-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Respect tsconfig.json and/or .babelrc #1348
Comments
Second this, would make adoption incredibly simple, just swap out our |
@tbillington I know it worth, but I don't have time. I will happy to accept pr. And please use +1 feature of github instead of spamming watchers. |
I've had a look at parsing tsconfigs into Rust, and this is a nice motivator to do it; it's slightly complicated because one tsconfig can extend others (ie, you might have
|
I think tsconfig can be used to all files if As I expect to a user to use only typescript and javascript in single project, I think applying to all language is correct way to go.
Both is acceptable, if tsconfig to swc-config lives in swc repository. |
I'm also looking for this but can't find any. So I just wrote a config-mapping node module tsconfig-to-swcconfig which maps configs in I also wrote some other libraries based on this:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
SWC does not interop tsconfig.json or babelrc or any other configs as of today. There were internal discussions, while techinically nothing prevents it we do not have any immediate plan to introduce it in |
This comment was marked as spam.
This comment was marked as spam.
I'm going to close this for now, implcit interop between configuration can help some and as well as confusing other usecase pretty quickly. At least, if we are really going to do this it needs very careful design to understand what's going on. Core team will internally put this into backlog to determine if we really wants this or not, however for now we don't have strong desire to have this. |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
It would be awesome if swc could read settings from existing
tsconfig.json
and/or.babelrc
in a project. This would be super useful since there seems to already be some overlap, and would save new users a trip to the documentation to figure out what swc's options are.The text was updated successfully, but these errors were encountered: