Skip to content

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

Open
@EvanBoyle

Description

@EvanBoyle

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.

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