Open
Description
We have two use cases where a compiler extension would help out greatly:
- Preserving JSX component names for checkpointing and visualization in the backend Better automated handling of component names #101
- Add stricter type checking for the areas where typescript JSX inference is weak and results in unknowns Weak type inference in JSX leaf nodes leads to unknown types #99
A functional prototype for (1) is here: https://github.com/cortexclick/gensx/compare/evan/checkpoints
Though, we still would need to turn this into an NPM package, add extensions for other js transpilers, and distribute the package.
microsoft/TypeScript#21699 is the issue that is causing problems for (2).
This is less of an "if" but rather a question of "when" and timing as adding a compiler extension will be non-trivial work and maintenance burden to support the ever changing node bundler/build tool ecosystem.