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.
As today, the Packager not only produce the source maps, it also defines
RAW_SOURCE_MAPvariable, 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.