Skip to content

[Packager] Source Map not correctly referenced from JS bundle. #5277

Description

@qbig

If I do the following bundle command, specifying the sourcemap file to be "index.android.map"

react-native bundle --platform android --dev false --entry-file index.android.js   --bundle-output android/app/src/main/assets/index.android.bundle   --assets-dest android/app/src/main/res/ --sourcemap-output android/app/src/main/assets/index.android.map

but in the output bundle file, 'bundle.js‘ is used as the sourceMappingURL

//# sourceMappingURL=bundle.js

If sourceMappingURL is the reference to the sourcemap file, shouldn't be "index.android.map" instead ? Or is 'bundle.js' use somewhere else internally?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions