31 lines
901 B
JavaScript
31 lines
901 B
JavaScript
// Metro module 1119 (f1120).
|
|
import { DEFAULT_BUNDLE_NAME } from "./Module1120";
|
|
import * as _Module817 from "./Module817";
|
|
import { GLOBAL_OBJ } from "./Module817";
|
|
export function getDebugMetadata() {
|
|
if (DEFAULT_BUNDLE_NAME) {
|
|
const _sentryDebugIds = GLOBAL_OBJ._sentryDebugIds;
|
|
if (_sentryDebugIds) {
|
|
const r18 = Object.keys(_sentryDebugIds);
|
|
if (r18.length) {
|
|
if (r18.length > 1) {
|
|
_Module817.debug.warn("[Profiling] Multiple debug images found, but only one one bundle is supported. Using the first one...");
|
|
return [];
|
|
}
|
|
if (r18[0]) {
|
|
const debug_id = _sentryDebugIds[r18[0]];
|
|
return debug_id ? [{
|
|
code_file: DEFAULT_BUNDLE_NAME,
|
|
debug_id,
|
|
type: "sourcemap"
|
|
}] : [];
|
|
}
|
|
return [];
|
|
}
|
|
return [];
|
|
}
|
|
return [];
|
|
}
|
|
return [];
|
|
}
|