Skip to content

Include sourcesContent in generated source map #85

@bengourley

Description

@bengourley

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions