ds300 / react-native-typescript-transformer

Seamlessly use TypeScript with React Native
MIT License
657 stars 55 forks source link

Jest tests fail with RN >= 52 because transformer doesn't return transpiled text, only ast #40

Open ds300 opened 6 years ago

ds300 commented 6 years ago

from https://github.com/ds300/react-native-typescript-transformer/issues/39#issuecomment-356317354

ds300 commented 6 years ago

Not really sure what to do about this, except add babel-generator to the mix. But that'd be in the jest transformer wrapper, not in this package

vovkasm commented 6 years ago

Actually it almost unusable until jest will add ability to handle source maps for transformed files, because retain lines does not help with typescript. Some links:

I did experiments with various variants, and still my transformer looks almost like that from comment.