ds300 / react-native-typescript-transformer

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

What is the right way to extract source maps? #69

Closed alexmbp closed 6 years ago

alexmbp commented 6 years ago

Hi there! I need a way to extract source maps for production build. To have good crash reporting. What is the right way to do it?

skellock commented 6 years ago

One way is to run this in your project's root directory:

react-native bundle \
  --dev false \
  --platform ios \
  --entry-file index.js \
  --bundle-output deleteme.jsbundle \
  --sourcemap-output index.map

Press enter, and go grab a cup of coffee.

Some notes: