-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
[v5] Use ts loader and ts-jest for typescript transpilation #11247
Comments
cc. @arogozine added this issue for tracking better support for typescript in CRA |
(or use the swc-loader to replace both babel and typescript loaders) |
I'm not sure swc-loader respects tsconfig at all though the switch would probably improve compilation speeds a good bit. |
No, currently it doesn't. See this. |
This comment lists a few more options for using SWC with a tsconfig file. Parcel's |
TL; DR; I haven't benchmarked it, but i feel it will make typescript transpilation slower as you will pass it through 2 loaders and not only babel. Also, using What other parts of the And a general note regarding typescript performance:
|
@Bnaya in babel you have to add certain plugins rather than just using the tsconfig... |
But CRA abstracts that away from you Regarding DX I tend to agree, but due to performance reasons and toolchain complexity I wound't go there |
Is that issue preventing v5 to be released? |
Nope - v5 is very close for a release, just some hickup with node 17 and latest webpack breaking tests afaik |
Do not use babel, use SWC in V5. |
Support for project references would be really nice. |
Is your proposal related to a problem?
When developing typescript applications it would be great to use typescript compiler instead of babel transform etc. to better respect the tsconfig.
A similar aspect is the missing typechecking of test / jest files again moving to ts-jest would greatly improve the DX in this area for TypeScript developers
(ts-jest loaders configured with the same babel presets as the actual build...)
Describe the solution you'd like
Describe alternatives you've considered
We already use babel as the alternative, would only consider those two
Additional context
The text was updated successfully, but these errors were encountered: