metro-source-map
Advanced tools
Comparing version 0.24.3 to 0.24.4
{ | ||
"version": "0.24.3", | ||
"version": "0.24.4", | ||
"name": "metro-source-map", | ||
@@ -4,0 +4,0 @@ "description": "🚇 Source map generator for Metro.", |
@@ -31,2 +31,22 @@ /** | ||
/** | ||
@@ -70,3 +90,5 @@ * Creates a source map from modules with "raw mappings", i.e. an array of | ||
*/ | ||
function toRawMappings(sourceMap) { | ||
function toBabelSegments( | ||
sourceMap) | ||
{ | ||
const rawMappings = []; | ||
@@ -92,3 +114,5 @@ | ||
function compactMapping(mapping) {var _mapping$generated = | ||
function toSegmentTuple( | ||
mapping) | ||
{var _mapping$generated = | ||
mapping.generated;const column = _mapping$generated.column,line = _mapping$generated.line;const | ||
@@ -149,5 +173,17 @@ name = mapping.name,original = mapping.original; | ||
function createIndexMap( | ||
file, | ||
sections) | ||
{ | ||
return { | ||
version: 3, | ||
file, | ||
sections }; | ||
} | ||
module.exports = { | ||
createIndexMap, | ||
fromRawMappings, | ||
toRawMappings, | ||
compactMapping }; | ||
toBabelSegments, | ||
toSegmentTuple }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
34342
552