[v5] Use ts loader and ts-jest for typescript transpilation
Created by: raix
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
- use ts-loader for transformation (keeping fork-ts-checker for the typechecking)
- use ts-jest for transformation and type checking in tests (with babel configured)
- Reduce babel for typescript files to do babel env/react and for now fast-refresh
Describe alternatives you've considered
We already use babel as the alternative, would only consider those two