Skip to content

[v5] Use ts loader and ts-jest for typescript transpilation #11247

@raix

Description

@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

  1. use ts-loader for transformation (keeping fork-ts-checker for the typechecking)
  2. use ts-jest for transformation and type checking in tests (with babel configured)
  3. 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

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions