MCPcopy Index your code
hub / github.com/ptmt/react-native-macos / createCodeWithMap

Function createCodeWithMap

local-cli/bundle/output/bundle.js:32–41  ·  view source on GitHub ↗
(bundle: Bundle, dev: boolean, sourceMapSourcesRoot?: string)

Source from the content-addressed store, hash-verified

30}
31
32function createCodeWithMap(bundle: Bundle, dev: boolean, sourceMapSourcesRoot?: string): * {
33 const map = bundle.getSourceMap({dev});
34 const sourceMap = relativizeSourceMap(
35 typeof map === 'string' ? (JSON.parse(map): SourceMap) : map,
36 sourceMapSourcesRoot);
37 return {
38 code: bundle.getSource({dev}),
39 map: JSON.stringify(sourceMap),
40 };
41}
42
43function saveBundleAndMap(
44 bundle: Bundle,

Callers 1

saveBundleAndMapFunction · 0.85

Calls 4

relativizeSourceMapFunction · 0.85
getSourceMapMethod · 0.80
parseMethod · 0.80
getSourceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…