Skip to content

Teach react native to consume source maps #116

@caridy

Description

@caridy

As today, the Packager not only produce the source maps, it also defines RAW_SOURCE_MAP variable, which is a representation of the source maps for the runtime so the errors can be mapped correctly.

Ideally, react native should be able to extract the source map information from the bundle file before executing it in JSC just like browsers do this, including the possibility of using an external source map.

This will open the door for the use of other tools that can take care of the bundling process without having to implement the logic for RAW_SOURCE_MAP, which is proprietary and very weird ;)

/cc @amasad, @ericf, this is what we were trying to explain in the meeting last week.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions