Skip to content

Add support custom TSX transformation #6375

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

Closed
LabEG opened this issue Jan 6, 2016 · 2 comments
Closed

Add support custom TSX transformation #6375

LabEG opened this issue Jan 6, 2016 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@LabEG
Copy link

LabEG commented Jan 6, 2016

TypeScript support only two way of TSX transformation:

  1. Preserve. I can compile to preserve and process file by classic JSX transform. This way support many framework.
  2. React. This is hard coded transformation only for React. This way is not honest in relation to other frameworks.

I want to use TSX view on difference frameworks, such as angular 1/2, mithril, vanilajs and others. Maybe well be better make not a hard coded transformation? Maybe better way well be make customizable transformation rule, based on d.ts.

@RyanCavanaugh
Copy link
Member

This turns out to be a lot of work for the sake of a minor convenience. Is there anything actually blocking you from using Preserve + the normal tool for the job?

@mhegazy
Copy link
Contributor

mhegazy commented Jan 7, 2016

Duplicate of #3788

@mhegazy mhegazy closed this as completed Jan 7, 2016
@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label Jan 7, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants