Include sourcesContent in composed Hermes source map
See original GitHub issueReact Native version: >= 0.60.2
Steps To Reproduce
- Build a new RN app in release mode with Hermes.
- The source map under
generated/sourcemaps/react/does not contain thesourcesContentfield.
Describe what you expected to happen:
The source map should contain a fully-populated sourcesContent field.
More context: https://github.com/facebook/hermes/issues/85 opened by @bengourley
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:12 (3 by maintainers)
Top Results From Across the Web
Include sourcesContent in generated source map #85 - GitHub
The default behaviour in Hermes is to not include the sourcesContent field in the output source map, and I can't see a way...
Read more >Hermes for React Native | Sentry Documentation
Learn about using the Hermes engine with our React Native SDK. ... If you do not need custom sourcemaps, the sentry.gradle build step...
Read more >Do source maps include the source text? - Stack Overflow
Source maps can optionally include the original source. From the spec, sourcesContent is "An optional list of source content, ...
Read more >Hermes for React Native | Sentry Documentation
Building Hermes bundles is a three-step process, each of which creates a different source map. Bundling / minifying using metro : index.android.bundle.packager.
Read more >Source-maps could be revealing your private project files
In a nutshell, a source-map is just a simple JSON file, which includes an object. This object has two important keys: “sources” and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

https://github.com/facebook/metro/pull/574 will fix this. Apologies for the long delay.
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.