porsager / flems

A single file web playground and sandbox
Do What The F*ck You Want To Public License
502 stars 87 forks source link

TSX support #72

Closed axyz closed 4 years ago

axyz commented 5 years ago

I'm trying to run some jsx code in a typescript source.

while jsx is enabled in the compiler options here: https://github.com/porsager/flems/blob/master/src/compilers.js#L49

only the .ts extension is supported and unless the extension is .tsx the typescript compiler will not be able to parse the jsx syntax.

P.S. unrelated: why the compilers are loaded from a static url? can they be provided by unpkg as well and maybe this way allow to use specific versions of the compiler for example?

porsager commented 4 years ago

Hi. Sorry for the late reply, I've overlooked the issues here.

The reason unpkg is not used is simply because it was too unreliable :-(

I'll try to look into why jsx doesn't work as soon as possible, but I've just updated Typescript to the latest version, so you could check if that helped out.

porsager commented 4 years ago

I'll close this out as I can't replicate.. Let me know if there's still an issue ;)