Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.1k
Open
Labels
Description
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 tots-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 a10x speed boost, and using Node.js for transpilation is already a popular, lightweight alternative.
- Better Developer Experience: This can speed upHMR 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 atypescript/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.