react-server-dom-webpack 19.0.0-rc-76002254-20240724 → 19.0.0-rc-941e1b4a-20240729

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1258,7 +1258,8 @@
1258
1258
  nonce,
1259
1259
  temporaryReferences,
1260
1260
  findSourceMapURL,
1261
- replayConsole
1261
+ replayConsole,
1262
+ environmentName
1262
1263
  ) {
1263
1264
  var chunks = new Map();
1264
1265
  this._bundlerConfig = bundlerConfig;
@@ -1274,6 +1275,8 @@
1274
1275
  this._tempRefs = temporaryReferences;
1275
1276
  this._debugFindSourceMapURL = findSourceMapURL;
1276
1277
  this._replayConsole = replayConsole;
1278
+ this._rootEnvironmentName =
1279
+ void 0 === environmentName ? "Server" : environmentName;
1277
1280
  this._fromJSON = createFromJSONCallback(this);
1278
1281
  }
1279
1282
  function resolveBuffer(response, id, buffer) {
@@ -1497,7 +1500,14 @@
1497
1500
  }
1498
1501
  );
1499
1502
  }
1500
- function createFakeFunction(name, filename, sourceMap, line, col) {
1503
+ function createFakeFunction(
1504
+ name,
1505
+ filename,
1506
+ sourceMap,
1507
+ line,
1508
+ col,
1509
+ environmentName
1510
+ ) {
1501
1511
  name || (name = "<anonymous>");
1502
1512
  var encodedName = JSON.stringify(name);
1503
1513
  1 >= line
@@ -1520,6 +1530,8 @@
1520
1530
  sourceMap
1521
1531
  ? ((col +=
1522
1532
  "\n//# sourceURL=rsc://React/" +
1533
+ encodeURIComponent(environmentName) +
1534
+ "/" +
1523
1535
  filename +
1524
1536
  "?" +
1525
1537
  fakeFunctionIdx++),
@@ -1542,7 +1554,8 @@
1542
1554
  (null != debugInfo.stack &&
1543
1555
  (debugInfo.debugStack = createFakeJSXCallStackInDEV(
1544
1556
  response,
1545
- debugInfo.stack
1557
+ debugInfo.stack,
1558
+ null == debugInfo.env ? "" : debugInfo.env
1546
1559
  )),
1547
1560
  null != debugInfo.owner &&
1548
1561
  initializeFakeStack(response, debugInfo.owner));
@@ -1736,19 +1749,22 @@
1736
1749
  (response._debugInfo || (response._debugInfo = [])).push(buffer);
1737
1750
  break;
1738
1751
  case 87:
1739
- if (response._replayConsole)
1752
+ if (response._replayConsole) {
1753
+ buffer = JSON.parse(buffer, response._fromJSON);
1754
+ response = buffer[0];
1755
+ id = buffer[3];
1756
+ tag = buffer.slice(4);
1740
1757
  b: {
1741
- (buffer = JSON.parse(buffer, response._fromJSON)),
1742
- (response = buffer[0]),
1743
- (id = buffer[3]),
1744
- (tag = buffer.slice(4)),
1745
- (buffer = 0);
1758
+ buffer = 0;
1746
1759
  switch (response) {
1747
1760
  case "dir":
1748
1761
  case "dirxml":
1749
1762
  case "groupEnd":
1750
1763
  case "table":
1751
- console[response].apply(console, tag);
1764
+ response = bind.apply(
1765
+ console[response],
1766
+ [console].concat(tag)
1767
+ );
1752
1768
  break b;
1753
1769
  case "assert":
1754
1770
  buffer = 1;
@@ -1771,8 +1787,11 @@
1771
1787
  " " + id + " ",
1772
1788
  ""
1773
1789
  );
1774
- console[response].apply(console, tag);
1790
+ tag.unshift(console);
1791
+ response = bind.apply(console[response], tag);
1775
1792
  }
1793
+ response();
1794
+ }
1776
1795
  break;
1777
1796
  case 82:
1778
1797
  startReadableStream(response, id, void 0);
@@ -1874,7 +1893,8 @@
1874
1893
  ? options.temporaryReferences
1875
1894
  : void 0,
1876
1895
  options && options.findSourceMapURL ? options.findSourceMapURL : void 0,
1877
- options ? !1 !== options.replayConsoleLogs : !0
1896
+ options ? !1 !== options.replayConsoleLogs : !0,
1897
+ options && options.environmentName ? options.environmentName : void 0
1878
1898
  );
1879
1899
  }
1880
1900
  function startReadingFromStream(response, stream) {
@@ -1975,6 +1995,7 @@
1975
1995
  }
1976
1996
  var ReactDOM = require("react-dom"),
1977
1997
  decoderOptions = { stream: !0 },
1998
+ bind = Function.prototype.bind,
1978
1999
  chunkCache = new Map(),
1979
2000
  chunkMap = new Map(),
1980
2001
  webpackGetChunkFilename = __webpack_require__.u;
@@ -2039,20 +2060,28 @@
2039
2060
  fakeFunctionCache = new Map(),
2040
2061
  fakeFunctionIdx = 0;
2041
2062
  ReactDOM = {
2042
- "react-stack-bottom-frame": function (response, stack) {
2063
+ "react-stack-bottom-frame": function (response, stack, environmentName) {
2043
2064
  for (var callStack = fakeJSXCallSite, i = 0; i < stack.length; i++) {
2044
2065
  var frame = stack[i],
2045
- frameKey = frame.join("-"),
2066
+ frameKey = frame.join("-") + "-" + environmentName,
2046
2067
  fn = fakeFunctionCache.get(frameKey);
2047
2068
  if (void 0 === fn) {
2048
2069
  fn = frame[0];
2049
2070
  var filename = frame[1],
2050
2071
  line = frame[2];
2051
2072
  frame = frame[3];
2052
- var sourceMap = response._debugFindSourceMapURL
2053
- ? response._debugFindSourceMapURL(filename)
2073
+ var findSourceMapURL = response._debugFindSourceMapURL;
2074
+ findSourceMapURL = findSourceMapURL
2075
+ ? findSourceMapURL(filename, environmentName)
2054
2076
  : null;
2055
- fn = createFakeFunction(fn, filename, sourceMap, line, frame);
2077
+ fn = createFakeFunction(
2078
+ fn,
2079
+ filename,
2080
+ findSourceMapURL,
2081
+ line,
2082
+ frame,
2083
+ environmentName
2084
+ );
2056
2085
  fakeFunctionCache.set(frameKey, fn);
2057
2086
  }
2058
2087
  callStack = fn.bind(null, callStack);
@@ -1429,7 +1429,8 @@
1429
1429
  nonce,
1430
1430
  temporaryReferences,
1431
1431
  findSourceMapURL,
1432
- replayConsole
1432
+ replayConsole,
1433
+ environmentName
1433
1434
  ) {
1434
1435
  var chunks = new Map();
1435
1436
  this._bundlerConfig = bundlerConfig;
@@ -1445,6 +1446,8 @@
1445
1446
  this._tempRefs = temporaryReferences;
1446
1447
  this._debugFindSourceMapURL = findSourceMapURL;
1447
1448
  this._replayConsole = replayConsole;
1449
+ this._rootEnvironmentName =
1450
+ void 0 === environmentName ? "Server" : environmentName;
1448
1451
  this._fromJSON = createFromJSONCallback(this);
1449
1452
  }
1450
1453
  function resolveBuffer(response, id, buffer) {
@@ -1673,7 +1676,14 @@
1673
1676
  }
1674
1677
  );
1675
1678
  }
1676
- function createFakeFunction(name, filename, sourceMap, line, col) {
1679
+ function createFakeFunction(
1680
+ name,
1681
+ filename,
1682
+ sourceMap,
1683
+ line,
1684
+ col,
1685
+ environmentName
1686
+ ) {
1677
1687
  name || (name = "<anonymous>");
1678
1688
  var encodedName = JSON.stringify(name);
1679
1689
  1 >= line
@@ -1696,6 +1706,8 @@
1696
1706
  sourceMap
1697
1707
  ? ((col +=
1698
1708
  "\n//# sourceURL=rsc://React/" +
1709
+ encodeURIComponent(environmentName) +
1710
+ "/" +
1699
1711
  filename +
1700
1712
  "?" +
1701
1713
  fakeFunctionIdx++),
@@ -1718,7 +1730,8 @@
1718
1730
  (null != debugInfo.stack &&
1719
1731
  (debugInfo.debugStack = createFakeJSXCallStackInDEV(
1720
1732
  response,
1721
- debugInfo.stack
1733
+ debugInfo.stack,
1734
+ null == debugInfo.env ? "" : debugInfo.env
1722
1735
  )),
1723
1736
  null != debugInfo.owner &&
1724
1737
  initializeFakeStack(response, debugInfo.owner));
@@ -1912,19 +1925,22 @@
1912
1925
  (response._debugInfo || (response._debugInfo = [])).push(buffer);
1913
1926
  break;
1914
1927
  case 87:
1915
- if (response._replayConsole)
1928
+ if (response._replayConsole) {
1929
+ buffer = JSON.parse(buffer, response._fromJSON);
1930
+ response = buffer[0];
1931
+ id = buffer[3];
1932
+ tag = buffer.slice(4);
1916
1933
  b: {
1917
- (buffer = JSON.parse(buffer, response._fromJSON)),
1918
- (response = buffer[0]),
1919
- (id = buffer[3]),
1920
- (tag = buffer.slice(4)),
1921
- (buffer = 0);
1934
+ buffer = 0;
1922
1935
  switch (response) {
1923
1936
  case "dir":
1924
1937
  case "dirxml":
1925
1938
  case "groupEnd":
1926
1939
  case "table":
1927
- console[response].apply(console, tag);
1940
+ response = bind$1.apply(
1941
+ console[response],
1942
+ [console].concat(tag)
1943
+ );
1928
1944
  break b;
1929
1945
  case "assert":
1930
1946
  buffer = 1;
@@ -1947,8 +1963,11 @@
1947
1963
  " " + id + " ",
1948
1964
  ""
1949
1965
  );
1950
- console[response].apply(console, tag);
1966
+ tag.unshift(console);
1967
+ response = bind$1.apply(console[response], tag);
1951
1968
  }
1969
+ response();
1970
+ }
1952
1971
  break;
1953
1972
  case 82:
1954
1973
  startReadableStream(response, id, void 0);
@@ -2055,7 +2074,8 @@
2055
2074
  ? options.temporaryReferences
2056
2075
  : void 0,
2057
2076
  options && options.findSourceMapURL ? options.findSourceMapURL : void 0,
2058
- options ? !0 === options.replayConsoleLogs : !1
2077
+ options ? !0 === options.replayConsoleLogs : !1,
2078
+ options && options.environmentName ? options.environmentName : void 0
2059
2079
  );
2060
2080
  }
2061
2081
  function startReadingFromStream(response, stream) {
@@ -2156,6 +2176,7 @@
2156
2176
  }
2157
2177
  var ReactDOM = require("react-dom"),
2158
2178
  decoderOptions = { stream: !0 },
2179
+ bind$1 = Function.prototype.bind,
2159
2180
  chunkCache = new Map(),
2160
2181
  ReactDOMSharedInternals =
2161
2182
  ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
@@ -2215,20 +2236,32 @@
2215
2236
  fakeFunctionCache = new Map(),
2216
2237
  fakeFunctionIdx = 0,
2217
2238
  createFakeJSXCallStack = {
2218
- "react-stack-bottom-frame": function (response, stack) {
2239
+ "react-stack-bottom-frame": function (
2240
+ response,
2241
+ stack,
2242
+ environmentName
2243
+ ) {
2219
2244
  for (var callStack = fakeJSXCallSite, i = 0; i < stack.length; i++) {
2220
2245
  var frame = stack[i],
2221
- frameKey = frame.join("-"),
2246
+ frameKey = frame.join("-") + "-" + environmentName,
2222
2247
  fn = fakeFunctionCache.get(frameKey);
2223
2248
  if (void 0 === fn) {
2224
2249
  fn = frame[0];
2225
2250
  var filename = frame[1],
2226
2251
  line = frame[2];
2227
2252
  frame = frame[3];
2228
- var sourceMap = response._debugFindSourceMapURL
2229
- ? response._debugFindSourceMapURL(filename)
2253
+ var findSourceMapURL = response._debugFindSourceMapURL;
2254
+ findSourceMapURL = findSourceMapURL
2255
+ ? findSourceMapURL(filename, environmentName)
2230
2256
  : null;
2231
- fn = createFakeFunction(fn, filename, sourceMap, line, frame);
2257
+ fn = createFakeFunction(
2258
+ fn,
2259
+ filename,
2260
+ findSourceMapURL,
2261
+ line,
2262
+ frame,
2263
+ environmentName
2264
+ );
2232
2265
  fakeFunctionCache.set(frameKey, fn);
2233
2266
  }
2234
2267
  callStack = fn.bind(null, callStack);
@@ -1429,7 +1429,8 @@
1429
1429
  nonce,
1430
1430
  temporaryReferences,
1431
1431
  findSourceMapURL,
1432
- replayConsole
1432
+ replayConsole,
1433
+ environmentName
1433
1434
  ) {
1434
1435
  var chunks = new Map();
1435
1436
  this._bundlerConfig = bundlerConfig;
@@ -1445,6 +1446,8 @@
1445
1446
  this._tempRefs = temporaryReferences;
1446
1447
  this._debugFindSourceMapURL = findSourceMapURL;
1447
1448
  this._replayConsole = replayConsole;
1449
+ this._rootEnvironmentName =
1450
+ void 0 === environmentName ? "Server" : environmentName;
1448
1451
  this._fromJSON = createFromJSONCallback(this);
1449
1452
  }
1450
1453
  function resolveBuffer(response, id, buffer) {
@@ -1673,7 +1676,14 @@
1673
1676
  }
1674
1677
  );
1675
1678
  }
1676
- function createFakeFunction(name, filename, sourceMap, line, col) {
1679
+ function createFakeFunction(
1680
+ name,
1681
+ filename,
1682
+ sourceMap,
1683
+ line,
1684
+ col,
1685
+ environmentName
1686
+ ) {
1677
1687
  name || (name = "<anonymous>");
1678
1688
  var encodedName = JSON.stringify(name);
1679
1689
  1 >= line
@@ -1696,6 +1706,8 @@
1696
1706
  sourceMap
1697
1707
  ? ((col +=
1698
1708
  "\n//# sourceURL=rsc://React/" +
1709
+ encodeURIComponent(environmentName) +
1710
+ "/" +
1699
1711
  filename +
1700
1712
  "?" +
1701
1713
  fakeFunctionIdx++),
@@ -1718,7 +1730,8 @@
1718
1730
  (null != debugInfo.stack &&
1719
1731
  (debugInfo.debugStack = createFakeJSXCallStackInDEV(
1720
1732
  response,
1721
- debugInfo.stack
1733
+ debugInfo.stack,
1734
+ null == debugInfo.env ? "" : debugInfo.env
1722
1735
  )),
1723
1736
  null != debugInfo.owner &&
1724
1737
  initializeFakeStack(response, debugInfo.owner));
@@ -1916,19 +1929,22 @@
1916
1929
  (response._debugInfo || (response._debugInfo = [])).push(row);
1917
1930
  break;
1918
1931
  case 87:
1919
- if (response._replayConsole)
1932
+ if (response._replayConsole) {
1933
+ row = JSON.parse(row, response._fromJSON);
1934
+ response = row[0];
1935
+ id = row[3];
1936
+ tag = row.slice(4);
1920
1937
  b: {
1921
- (row = JSON.parse(row, response._fromJSON)),
1922
- (response = row[0]),
1923
- (id = row[3]),
1924
- (tag = row.slice(4)),
1925
- (row = 0);
1938
+ row = 0;
1926
1939
  switch (response) {
1927
1940
  case "dir":
1928
1941
  case "dirxml":
1929
1942
  case "groupEnd":
1930
1943
  case "table":
1931
- console[response].apply(console, tag);
1944
+ response = bind$1.apply(
1945
+ console[response],
1946
+ [console].concat(tag)
1947
+ );
1932
1948
  break b;
1933
1949
  case "assert":
1934
1950
  row = 1;
@@ -1951,8 +1967,11 @@
1951
1967
  " " + id + " ",
1952
1968
  ""
1953
1969
  );
1954
- console[response].apply(console, tag);
1970
+ tag.unshift(console);
1971
+ response = bind$1.apply(console[response], tag);
1955
1972
  }
1973
+ response();
1974
+ }
1956
1975
  break;
1957
1976
  case 82:
1958
1977
  startReadableStream(response, id, void 0);
@@ -2048,6 +2067,7 @@
2048
2067
  var util = require("util"),
2049
2068
  ReactDOM = require("react-dom"),
2050
2069
  decoderOptions = { stream: !0 },
2070
+ bind$1 = Function.prototype.bind,
2051
2071
  chunkCache = new Map(),
2052
2072
  ReactDOMSharedInternals =
2053
2073
  ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
@@ -2107,20 +2127,32 @@
2107
2127
  fakeFunctionCache = new Map(),
2108
2128
  fakeFunctionIdx = 0,
2109
2129
  createFakeJSXCallStack = {
2110
- "react-stack-bottom-frame": function (response, stack) {
2130
+ "react-stack-bottom-frame": function (
2131
+ response,
2132
+ stack,
2133
+ environmentName
2134
+ ) {
2111
2135
  for (var callStack = fakeJSXCallSite, i = 0; i < stack.length; i++) {
2112
2136
  var frame = stack[i],
2113
- frameKey = frame.join("-"),
2137
+ frameKey = frame.join("-") + "-" + environmentName,
2114
2138
  fn = fakeFunctionCache.get(frameKey);
2115
2139
  if (void 0 === fn) {
2116
2140
  fn = frame[0];
2117
2141
  var filename = frame[1],
2118
2142
  line = frame[2];
2119
2143
  frame = frame[3];
2120
- var sourceMap = response._debugFindSourceMapURL
2121
- ? response._debugFindSourceMapURL(filename)
2144
+ var findSourceMapURL = response._debugFindSourceMapURL;
2145
+ findSourceMapURL = findSourceMapURL
2146
+ ? findSourceMapURL(filename, environmentName)
2122
2147
  : null;
2123
- fn = createFakeFunction(fn, filename, sourceMap, line, frame);
2148
+ fn = createFakeFunction(
2149
+ fn,
2150
+ filename,
2151
+ findSourceMapURL,
2152
+ line,
2153
+ frame,
2154
+ environmentName
2155
+ );
2124
2156
  fakeFunctionCache.set(frameKey, fn);
2125
2157
  }
2126
2158
  callStack = fn.bind(null, callStack);
@@ -2140,7 +2172,8 @@
2140
2172
  options && "string" === typeof options.nonce ? options.nonce : void 0,
2141
2173
  void 0,
2142
2174
  options && options.findSourceMapURL ? options.findSourceMapURL : void 0,
2143
- options ? !0 === options.replayConsoleLogs : !1
2175
+ options ? !0 === options.replayConsoleLogs : !1,
2176
+ options && options.environmentName ? options.environmentName : void 0
2144
2177
  );
2145
2178
  stream.on("data", function (chunk) {
2146
2179
  if ("string" === typeof chunk) {
@@ -1404,7 +1404,8 @@
1404
1404
  nonce,
1405
1405
  temporaryReferences,
1406
1406
  findSourceMapURL,
1407
- replayConsole
1407
+ replayConsole,
1408
+ environmentName
1408
1409
  ) {
1409
1410
  var chunks = new Map();
1410
1411
  this._bundlerConfig = bundlerConfig;
@@ -1420,6 +1421,8 @@
1420
1421
  this._tempRefs = temporaryReferences;
1421
1422
  this._debugFindSourceMapURL = findSourceMapURL;
1422
1423
  this._replayConsole = replayConsole;
1424
+ this._rootEnvironmentName =
1425
+ void 0 === environmentName ? "Server" : environmentName;
1423
1426
  this._fromJSON = createFromJSONCallback(this);
1424
1427
  }
1425
1428
  function resolveBuffer(response, id, buffer) {
@@ -1648,7 +1651,14 @@
1648
1651
  }
1649
1652
  );
1650
1653
  }
1651
- function createFakeFunction(name, filename, sourceMap, line, col) {
1654
+ function createFakeFunction(
1655
+ name,
1656
+ filename,
1657
+ sourceMap,
1658
+ line,
1659
+ col,
1660
+ environmentName
1661
+ ) {
1652
1662
  name || (name = "<anonymous>");
1653
1663
  var encodedName = JSON.stringify(name);
1654
1664
  1 >= line
@@ -1671,6 +1681,8 @@
1671
1681
  sourceMap
1672
1682
  ? ((col +=
1673
1683
  "\n//# sourceURL=rsc://React/" +
1684
+ encodeURIComponent(environmentName) +
1685
+ "/" +
1674
1686
  filename +
1675
1687
  "?" +
1676
1688
  fakeFunctionIdx++),
@@ -1693,7 +1705,8 @@
1693
1705
  (null != debugInfo.stack &&
1694
1706
  (debugInfo.debugStack = createFakeJSXCallStackInDEV(
1695
1707
  response,
1696
- debugInfo.stack
1708
+ debugInfo.stack,
1709
+ null == debugInfo.env ? "" : debugInfo.env
1697
1710
  )),
1698
1711
  null != debugInfo.owner &&
1699
1712
  initializeFakeStack(response, debugInfo.owner));
@@ -1891,19 +1904,22 @@
1891
1904
  (response._debugInfo || (response._debugInfo = [])).push(row);
1892
1905
  break;
1893
1906
  case 87:
1894
- if (response._replayConsole)
1907
+ if (response._replayConsole) {
1908
+ row = JSON.parse(row, response._fromJSON);
1909
+ response = row[0];
1910
+ id = row[3];
1911
+ tag = row.slice(4);
1895
1912
  b: {
1896
- (row = JSON.parse(row, response._fromJSON)),
1897
- (response = row[0]),
1898
- (id = row[3]),
1899
- (tag = row.slice(4)),
1900
- (row = 0);
1913
+ row = 0;
1901
1914
  switch (response) {
1902
1915
  case "dir":
1903
1916
  case "dirxml":
1904
1917
  case "groupEnd":
1905
1918
  case "table":
1906
- console[response].apply(console, tag);
1919
+ response = bind$1.apply(
1920
+ console[response],
1921
+ [console].concat(tag)
1922
+ );
1907
1923
  break b;
1908
1924
  case "assert":
1909
1925
  row = 1;
@@ -1926,8 +1942,11 @@
1926
1942
  " " + id + " ",
1927
1943
  ""
1928
1944
  );
1929
- console[response].apply(console, tag);
1945
+ tag.unshift(console);
1946
+ response = bind$1.apply(console[response], tag);
1930
1947
  }
1948
+ response();
1949
+ }
1931
1950
  break;
1932
1951
  case 82:
1933
1952
  startReadableStream(response, id, void 0);
@@ -2023,6 +2042,7 @@
2023
2042
  var util = require("util"),
2024
2043
  ReactDOM = require("react-dom"),
2025
2044
  decoderOptions = { stream: !0 },
2045
+ bind$1 = Function.prototype.bind,
2026
2046
  asyncModuleCache = new Map(),
2027
2047
  ReactDOMSharedInternals =
2028
2048
  ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
@@ -2082,20 +2102,32 @@
2082
2102
  fakeFunctionCache = new Map(),
2083
2103
  fakeFunctionIdx = 0,
2084
2104
  createFakeJSXCallStack = {
2085
- "react-stack-bottom-frame": function (response, stack) {
2105
+ "react-stack-bottom-frame": function (
2106
+ response,
2107
+ stack,
2108
+ environmentName
2109
+ ) {
2086
2110
  for (var callStack = fakeJSXCallSite, i = 0; i < stack.length; i++) {
2087
2111
  var frame = stack[i],
2088
- frameKey = frame.join("-"),
2112
+ frameKey = frame.join("-") + "-" + environmentName,
2089
2113
  fn = fakeFunctionCache.get(frameKey);
2090
2114
  if (void 0 === fn) {
2091
2115
  fn = frame[0];
2092
2116
  var filename = frame[1],
2093
2117
  line = frame[2];
2094
2118
  frame = frame[3];
2095
- var sourceMap = response._debugFindSourceMapURL
2096
- ? response._debugFindSourceMapURL(filename)
2119
+ var findSourceMapURL = response._debugFindSourceMapURL;
2120
+ findSourceMapURL = findSourceMapURL
2121
+ ? findSourceMapURL(filename, environmentName)
2097
2122
  : null;
2098
- fn = createFakeFunction(fn, filename, sourceMap, line, frame);
2123
+ fn = createFakeFunction(
2124
+ fn,
2125
+ filename,
2126
+ findSourceMapURL,
2127
+ line,
2128
+ frame,
2129
+ environmentName
2130
+ );
2099
2131
  fakeFunctionCache.set(frameKey, fn);
2100
2132
  }
2101
2133
  callStack = fn.bind(null, callStack);
@@ -2115,7 +2147,8 @@
2115
2147
  options && "string" === typeof options.nonce ? options.nonce : void 0,
2116
2148
  void 0,
2117
2149
  options && options.findSourceMapURL ? options.findSourceMapURL : void 0,
2118
- options ? !0 === options.replayConsoleLogs : !1
2150
+ options ? !0 === options.replayConsoleLogs : !1,
2151
+ options && options.environmentName ? options.environmentName : void 0
2119
2152
  );
2120
2153
  stream.on("data", function (chunk) {
2121
2154
  if ("string" === typeof chunk) {