ds300 / react-native-typescript-transformer

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

Breakpoints jump to a different line #76

Open jochem725 opened 6 years ago

jochem725 commented 6 years ago

I’ve set up react-native-typescript-transformer using the guide described on the website of React Native both using an existing react-native project with version 0.55.1 and a clean project with version 0.56.0.

In both versions, if I use this in combination with VSCode and Chrome setting a breakpoint on a line makes it jump to a different line. Could this be an issue with the generated source maps?

jochem725 commented 6 years ago

I’ve created a sample project [here] based on the typescript article on the RN blog (https://github.com/jochem725/ts-breakpoints). The steps to reproduce (on iOS) are

If you do this, you will see the breakpoint jump to a different line.