Skip to content

Introduce typescript/auto Mode for Faster TypeScript Transpilation in Webpack #19354

@Vansh5632

Description

@Vansh5632

Feature request

What is the expected behavior?

Introduce a new TypeScript mode (typescript/auto) in Webpack that can leverage the new Go-based TypeScript compiler (Corsa) or Node.js built-in TypeScript transpilation for faster builds. This would serve as a lightweight alternative to ts-loader, focusing purely on transpilation without type-checking.

What is motivation or use case for adding/changing the behavior?

  • Faster Compilation: The Corsa compiler promises a 10x speed boost, and using Node.js for transpilation is already a popular, lightweight alternative.
  • Better Developer Experience: This can speed up HMR and incremental builds significantly.
  • Smoother Transition: Developers can opt into this mode without replacing their entire toolchain.

How should this be implemented in your opinion?

Introduce a typescript/auto mode that dynamically selects the best available transpiler:

  • Use Corsa (if stable and available).
  • Fallback to Node.js TypeScript transpilation (like ts-node, but integrated).
  • Skip type-checking in Webpack builds but allow separate type-checking with fork-ts-checker-webpack-plugin.
  • Ensure compatibility with Webpack’s caching and module resolution.

Are you willing to work on this yourself?

Yes, I’m interested in exploring the feasibility of this feature and contributing to discussions and development.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions