1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4  value: true
5});
6exports.generateFunctionMap = generateFunctionMap;
7function _env() {
8  const data = require("../env");
9  _env = function () {
10    return data;
11  };
12  return data;
13}
14function generateFunctionMap(...props) {
15  //  `x_facebook_sources` is a source map feature that we disable by default since it isn't documented
16  // and doesn't appear to add much value to the DX, it also increases bundle time, and source map size.
17  // The feature supposedly provides improved function names for anonymous functions, but we will opt towards
18  // linting to prevent users from adding anonymous functions for important features like React components.
19  //
20  // Here is an example stack trace for a component that throws an error
21  // in the root component (which is an anonymous function):
22  //
23  // Before:
24  // - <anonymous> App.js:5:9
25  // - renderApplication renderApplication.js:54:5
26  // - runnables.appKey.run AppRegistry.js:117:26
27  //
28  // After:
29  // - _default App.js:5:9
30  // - renderApplication renderApplication.js:54:5
31  // - run AppRegistry.js:117:26
32  //
33  if (_env().env.EXPO_USE_FB_SOURCES) {
34    return require('metro-source-map').generateFunctionMap(...props);
35  }
36  return null;
37}
38//# sourceMappingURL=generateFunctionMap.js.map