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

support for --jsx flags #23

Closed
prabirshrestha opened this issue Jun 26, 2015 · 2 comments
Closed

support for --jsx flags #23

prabirshrestha opened this issue Jun 26, 2015 · 2 comments

Comments

@prabirshrestha
Copy link

It would be great to have support for --jsx flags. microsoft/TypeScript#3564

{ test: /\.ts$/, loader: 'ts-loader?jsx=KIND' }

where KIND is preserve or react

@jbrantly
Copy link
Member

Support for specifying the jsx option in the tsconfig.json file is already included in that PR. Using tsconfig.json is the preferred (and only) way to specify TypeScript-related options with this loader. Basically you'll be able to specify the jsx option without any changes to ts-loader once that lands.

@jbrantly
Copy link
Member

jbrantly commented Jul 6, 2015

Just for reference, I've created a JSX test that shows how to set the option in the tsconfig.json file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants