When react-native's normal bundle command is executed with --sourcemap-output, e.g:
$ react-native bundle \
--platform android \
--dev false \
--entry-file index.js \
--bundle-output android-release.bundle \
--sourcemap-output android-release.bundle.map
… the sourcesContent field of the source map is populated.
The default behaviour in Hermes is to not include the sourcesContent field in the output source map, and I can't see a way to enable it.
Having it on by default, or at least being able to include sources with an option, is a really useful feature that we (at Bugsnag) and our customers rely on. Can you let me know if there are plans to add this, or any objections to adding it?
Thanks!
When
react-native's normal bundle command is executed with--sourcemap-output, e.g:… the
sourcesContentfield of the source map is populated.The default behaviour in Hermes is to not include the
sourcesContentfield in the output source map, and I can't see a way to enable it.Having it on by default, or at least being able to include sources with an option, is a really useful feature that we (at Bugsnag) and our customers rely on. Can you let me know if there are plans to add this, or any objections to adding it?
Thanks!