Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add typescript (and vite/babel/etc) compiler extension #100

Open
EvanBoyle opened this issue Jan 13, 2025 · 0 comments
Open

Add typescript (and vite/babel/etc) compiler extension #100

EvanBoyle opened this issue Jan 13, 2025 · 0 comments
Labels
area/source enhancement New feature or request

Comments

@EvanBoyle
Copy link
Member

EvanBoyle commented Jan 13, 2025

We have two use cases where a compiler extension would help out greatly:

  1. Preserving JSX component names for checkpointing and visualization in the backend Better automated handling of component names #101
  2. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/source enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant