question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Include sourcesContent in composed Hermes source map

See original GitHub issue

React Native version: >= 0.60.2

Steps To Reproduce

  1. Build a new RN app in release mode with Hermes.
  2. The source map under generated/sourcemaps/react/ does not contain the sourcesContent field.

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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
motiz88commented, Jun 29, 2020

https://github.com/facebook/metro/pull/574 will fix this. Apologies for the long delay.

0reactions
stale[bot]commented, Oct 12, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found