UNPKG

@bacons/expo-metro-runtime

Version:

Tools for making experimental Metro bundler features work

20 lines 751 B
"use strict"; /** * Copyright (c) Evan Bacon. * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ Object.defineProperty(exports, "__esModule", { value: true }); async function symbolicateStackTrace(stack) { // Lazy-load `fetch` until the first symbolication call to avoid circular requires. const baseUrl = window.location.protocol + "//" + window.location.host; const response = await fetch(baseUrl + "/symbolicate", { method: "POST", body: JSON.stringify({ stack }), }); return await response.json(); } exports.default = symbolicateStackTrace; //# sourceMappingURL=index.js.map