Skip to content
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

ts_project should allow alternative transpilers #3133

Closed
alexeagle opened this issue Dec 10, 2021 · 0 comments · Fixed by #3134
Closed

ts_project should allow alternative transpilers #3133

alexeagle opened this issue Dec 10, 2021 · 0 comments · Fixed by #3134
Assignees
Milestone

Comments

@alexeagle
Copy link
Collaborator

Every TS project needs a typechecker and a transpiler. Currently the ts_project rule uses one tsc subprocess to do both.

However a common setup is to separate these, using some other transpiler like babel or swc to produce the .js outputs, which are consumed in the developer's workflow. The typechecks produce the .d.ts outputs and only need to be produced when testing the repo, and not in the developer's workflow (they probably have the TS language service in their editor so they already saw typecheck diagnostics as the coded)

The ts_project macro could accept a transpiler attribute that makes it easy to do this division of responsibility, and gives an easy path to making dev workflows 10x faster.

@alexeagle alexeagle self-assigned this Dec 10, 2021
@alexeagle alexeagle added this to the 5.0 milestone Dec 10, 2021
alexeagle added a commit that referenced this issue Jan 3, 2022
alexeagle added a commit that referenced this issue Jan 4, 2022
* feat(typescript): allow alternative transpilers

Fixes #3133

* fixup! feat(typescript): allow alternative transpilers
alexeagle added a commit that referenced this issue Jan 7, 2022
* feat(typescript): allow alternative transpilers

Fixes #3133

* fixup! feat(typescript): allow alternative transpilers
alexeagle added a commit that referenced this issue Jan 8, 2022
* feat(typescript): allow alternative transpilers

Fixes #3133

* fixup! feat(typescript): allow alternative transpilers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant