react-server-dom-webpack 19.0.0-rc-ab2135c7-20240724 → 19.0.0-rc-14a4699f-20240725

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.
@@ -1043,10 +1043,23 @@
1043
1043
  }
1044
1044
  switch (id.status) {
1045
1045
  case "fulfilled":
1046
- parentObject = id.value;
1047
- for (key = 1; key < reference.length; key++)
1048
- parentObject = parentObject[reference[key]];
1049
- response = map(response, parentObject);
1046
+ for (var value = id.value, i = 1; i < reference.length; i++)
1047
+ if (
1048
+ ((value = value[reference[i]]),
1049
+ value.$$typeof === REACT_LAZY_TYPE)
1050
+ )
1051
+ if (((value = value._payload), "fulfilled" === value.status))
1052
+ value = value.value;
1053
+ else
1054
+ return waitForReference(
1055
+ value,
1056
+ parentObject,
1057
+ key,
1058
+ response,
1059
+ map,
1060
+ reference.slice(i)
1061
+ );
1062
+ response = map(response, value);
1050
1063
  id._debugInfo &&
1051
1064
  ("object" !== typeof response ||
1052
1065
  null === response ||
@@ -1245,7 +1258,8 @@
1245
1258
  nonce,
1246
1259
  temporaryReferences,
1247
1260
  findSourceMapURL,
1248
- replayConsole
1261
+ replayConsole,
1262
+ environmentName
1249
1263
  ) {
1250
1264
  var chunks = new Map();
1251
1265
  this._bundlerConfig = bundlerConfig;
@@ -1261,6 +1275,8 @@
1261
1275
  this._tempRefs = temporaryReferences;
1262
1276
  this._debugFindSourceMapURL = findSourceMapURL;
1263
1277
  this._replayConsole = replayConsole;
1278
+ this._rootEnvironmentName =
1279
+ void 0 === environmentName ? "Server" : environmentName;
1264
1280
  this._fromJSON = createFromJSONCallback(this);
1265
1281
  }
1266
1282
  function resolveBuffer(response, id, buffer) {
@@ -1484,8 +1500,15 @@
1484
1500
  }
1485
1501
  );
1486
1502
  }
1487
- function createFakeFunction(name, filename, sourceMap, line, col) {
1488
- name || (name = "(anonymous)");
1503
+ function createFakeFunction(
1504
+ name,
1505
+ filename,
1506
+ sourceMap,
1507
+ line,
1508
+ col,
1509
+ environmentName
1510
+ ) {
1511
+ name || (name = "<anonymous>");
1489
1512
  var encodedName = JSON.stringify(name);
1490
1513
  1 >= line
1491
1514
  ? ((line = encodedName.length + 7),
@@ -1507,6 +1530,8 @@
1507
1530
  sourceMap
1508
1531
  ? ((col +=
1509
1532
  "\n//# sourceURL=rsc://React/" +
1533
+ encodeURIComponent(environmentName) +
1534
+ "/" +
1510
1535
  filename +
1511
1536
  "?" +
1512
1537
  fakeFunctionIdx++),
@@ -1529,7 +1554,8 @@
1529
1554
  (null != debugInfo.stack &&
1530
1555
  (debugInfo.debugStack = createFakeJSXCallStackInDEV(
1531
1556
  response,
1532
- debugInfo.stack
1557
+ debugInfo.stack,
1558
+ null == debugInfo.env ? "" : debugInfo.env
1533
1559
  )),
1534
1560
  null != debugInfo.owner &&
1535
1561
  initializeFakeStack(response, debugInfo.owner));
@@ -1861,7 +1887,8 @@
1861
1887
  ? options.temporaryReferences
1862
1888
  : void 0,
1863
1889
  options && options.findSourceMapURL ? options.findSourceMapURL : void 0,
1864
- options ? !1 !== options.replayConsoleLogs : !0
1890
+ options ? !1 !== options.replayConsoleLogs : !0,
1891
+ options && options.environmentName ? options.environmentName : void 0
1865
1892
  );
1866
1893
  }
1867
1894
  function startReadingFromStream(response, stream) {
@@ -2026,20 +2053,28 @@
2026
2053
  fakeFunctionCache = new Map(),
2027
2054
  fakeFunctionIdx = 0;
2028
2055
  ReactDOM = {
2029
- "react-stack-bottom-frame": function (response, stack) {
2056
+ "react-stack-bottom-frame": function (response, stack, environmentName) {
2030
2057
  for (var callStack = fakeJSXCallSite, i = 0; i < stack.length; i++) {
2031
2058
  var frame = stack[i],
2032
- frameKey = frame.join("-"),
2059
+ frameKey = frame.join("-") + "-" + environmentName,
2033
2060
  fn = fakeFunctionCache.get(frameKey);
2034
2061
  if (void 0 === fn) {
2035
2062
  fn = frame[0];
2036
2063
  var filename = frame[1],
2037
2064
  line = frame[2];
2038
2065
  frame = frame[3];
2039
- var sourceMap = response._debugFindSourceMapURL
2040
- ? response._debugFindSourceMapURL(filename)
2066
+ var findSourceMapURL = response._debugFindSourceMapURL;
2067
+ findSourceMapURL = findSourceMapURL
2068
+ ? findSourceMapURL(filename, environmentName)
2041
2069
  : null;
2042
- fn = createFakeFunction(fn, filename, sourceMap, line, frame);
2070
+ fn = createFakeFunction(
2071
+ fn,
2072
+ filename,
2073
+ findSourceMapURL,
2074
+ line,
2075
+ frame,
2076
+ environmentName
2077
+ );
2043
2078
  fakeFunctionCache.set(frameKey, fn);
2044
2079
  }
2045
2080
  callStack = fn.bind(null, callStack);
@@ -746,10 +746,23 @@ function getOutlinedModel(response, reference, parentObject, key, map) {
746
746
  }
747
747
  switch (id.status) {
748
748
  case "fulfilled":
749
- parentObject = id.value;
750
- for (key = 1; key < reference.length; key++)
751
- parentObject = parentObject[reference[key]];
752
- return map(response, parentObject);
749
+ var value = id.value;
750
+ for (id = 1; id < reference.length; id++)
751
+ if (
752
+ ((value = value[reference[id]]), value.$$typeof === REACT_LAZY_TYPE)
753
+ )
754
+ if (((value = value._payload), "fulfilled" === value.status))
755
+ value = value.value;
756
+ else
757
+ return waitForReference(
758
+ value,
759
+ parentObject,
760
+ key,
761
+ response,
762
+ map,
763
+ reference.slice(id)
764
+ );
765
+ return map(response, value);
753
766
  case "pending":
754
767
  case "blocked":
755
768
  return waitForReference(id, parentObject, key, response, map, reference);
@@ -1214,10 +1214,23 @@
1214
1214
  }
1215
1215
  switch (id.status) {
1216
1216
  case "fulfilled":
1217
- parentObject = id.value;
1218
- for (key = 1; key < reference.length; key++)
1219
- parentObject = parentObject[reference[key]];
1220
- response = map(response, parentObject);
1217
+ for (var value = id.value, i = 1; i < reference.length; i++)
1218
+ if (
1219
+ ((value = value[reference[i]]),
1220
+ value.$$typeof === REACT_LAZY_TYPE)
1221
+ )
1222
+ if (((value = value._payload), "fulfilled" === value.status))
1223
+ value = value.value;
1224
+ else
1225
+ return waitForReference(
1226
+ value,
1227
+ parentObject,
1228
+ key,
1229
+ response,
1230
+ map,
1231
+ reference.slice(i)
1232
+ );
1233
+ response = map(response, value);
1221
1234
  id._debugInfo &&
1222
1235
  ("object" !== typeof response ||
1223
1236
  null === response ||
@@ -1416,7 +1429,8 @@
1416
1429
  nonce,
1417
1430
  temporaryReferences,
1418
1431
  findSourceMapURL,
1419
- replayConsole
1432
+ replayConsole,
1433
+ environmentName
1420
1434
  ) {
1421
1435
  var chunks = new Map();
1422
1436
  this._bundlerConfig = bundlerConfig;
@@ -1432,6 +1446,8 @@
1432
1446
  this._tempRefs = temporaryReferences;
1433
1447
  this._debugFindSourceMapURL = findSourceMapURL;
1434
1448
  this._replayConsole = replayConsole;
1449
+ this._rootEnvironmentName =
1450
+ void 0 === environmentName ? "Server" : environmentName;
1435
1451
  this._fromJSON = createFromJSONCallback(this);
1436
1452
  }
1437
1453
  function resolveBuffer(response, id, buffer) {
@@ -1660,8 +1676,15 @@
1660
1676
  }
1661
1677
  );
1662
1678
  }
1663
- function createFakeFunction(name, filename, sourceMap, line, col) {
1664
- name || (name = "(anonymous)");
1679
+ function createFakeFunction(
1680
+ name,
1681
+ filename,
1682
+ sourceMap,
1683
+ line,
1684
+ col,
1685
+ environmentName
1686
+ ) {
1687
+ name || (name = "<anonymous>");
1665
1688
  var encodedName = JSON.stringify(name);
1666
1689
  1 >= line
1667
1690
  ? ((line = encodedName.length + 7),
@@ -1683,6 +1706,8 @@
1683
1706
  sourceMap
1684
1707
  ? ((col +=
1685
1708
  "\n//# sourceURL=rsc://React/" +
1709
+ encodeURIComponent(environmentName) +
1710
+ "/" +
1686
1711
  filename +
1687
1712
  "?" +
1688
1713
  fakeFunctionIdx++),
@@ -1705,7 +1730,8 @@
1705
1730
  (null != debugInfo.stack &&
1706
1731
  (debugInfo.debugStack = createFakeJSXCallStackInDEV(
1707
1732
  response,
1708
- debugInfo.stack
1733
+ debugInfo.stack,
1734
+ null == debugInfo.env ? "" : debugInfo.env
1709
1735
  )),
1710
1736
  null != debugInfo.owner &&
1711
1737
  initializeFakeStack(response, debugInfo.owner));
@@ -2042,7 +2068,8 @@
2042
2068
  ? options.temporaryReferences
2043
2069
  : void 0,
2044
2070
  options && options.findSourceMapURL ? options.findSourceMapURL : void 0,
2045
- options ? !0 === options.replayConsoleLogs : !1
2071
+ options ? !0 === options.replayConsoleLogs : !1,
2072
+ options && options.environmentName ? options.environmentName : void 0
2046
2073
  );
2047
2074
  }
2048
2075
  function startReadingFromStream(response, stream) {
@@ -2202,20 +2229,32 @@
2202
2229
  fakeFunctionCache = new Map(),
2203
2230
  fakeFunctionIdx = 0,
2204
2231
  createFakeJSXCallStack = {
2205
- "react-stack-bottom-frame": function (response, stack) {
2232
+ "react-stack-bottom-frame": function (
2233
+ response,
2234
+ stack,
2235
+ environmentName
2236
+ ) {
2206
2237
  for (var callStack = fakeJSXCallSite, i = 0; i < stack.length; i++) {
2207
2238
  var frame = stack[i],
2208
- frameKey = frame.join("-"),
2239
+ frameKey = frame.join("-") + "-" + environmentName,
2209
2240
  fn = fakeFunctionCache.get(frameKey);
2210
2241
  if (void 0 === fn) {
2211
2242
  fn = frame[0];
2212
2243
  var filename = frame[1],
2213
2244
  line = frame[2];
2214
2245
  frame = frame[3];
2215
- var sourceMap = response._debugFindSourceMapURL
2216
- ? response._debugFindSourceMapURL(filename)
2246
+ var findSourceMapURL = response._debugFindSourceMapURL;
2247
+ findSourceMapURL = findSourceMapURL
2248
+ ? findSourceMapURL(filename, environmentName)
2217
2249
  : null;
2218
- fn = createFakeFunction(fn, filename, sourceMap, line, frame);
2250
+ fn = createFakeFunction(
2251
+ fn,
2252
+ filename,
2253
+ findSourceMapURL,
2254
+ line,
2255
+ frame,
2256
+ environmentName
2257
+ );
2219
2258
  fakeFunctionCache.set(frameKey, fn);
2220
2259
  }
2221
2260
  callStack = fn.bind(null, callStack);
@@ -900,10 +900,23 @@ function getOutlinedModel(response, reference, parentObject, key, map) {
900
900
  }
901
901
  switch (id.status) {
902
902
  case "fulfilled":
903
- parentObject = id.value;
904
- for (key = 1; key < reference.length; key++)
905
- parentObject = parentObject[reference[key]];
906
- return map(response, parentObject);
903
+ var value = id.value;
904
+ for (id = 1; id < reference.length; id++)
905
+ if (
906
+ ((value = value[reference[id]]), value.$$typeof === REACT_LAZY_TYPE)
907
+ )
908
+ if (((value = value._payload), "fulfilled" === value.status))
909
+ value = value.value;
910
+ else
911
+ return waitForReference(
912
+ value,
913
+ parentObject,
914
+ key,
915
+ response,
916
+ map,
917
+ reference.slice(id)
918
+ );
919
+ return map(response, value);
907
920
  case "pending":
908
921
  case "blocked":
909
922
  return waitForReference(id, parentObject, key, response, map, reference);
@@ -1214,10 +1214,23 @@
1214
1214
  }
1215
1215
  switch (id.status) {
1216
1216
  case "fulfilled":
1217
- parentObject = id.value;
1218
- for (key = 1; key < reference.length; key++)
1219
- parentObject = parentObject[reference[key]];
1220
- response = map(response, parentObject);
1217
+ for (var value = id.value, i = 1; i < reference.length; i++)
1218
+ if (
1219
+ ((value = value[reference[i]]),
1220
+ value.$$typeof === REACT_LAZY_TYPE)
1221
+ )
1222
+ if (((value = value._payload), "fulfilled" === value.status))
1223
+ value = value.value;
1224
+ else
1225
+ return waitForReference(
1226
+ value,
1227
+ parentObject,
1228
+ key,
1229
+ response,
1230
+ map,
1231
+ reference.slice(i)
1232
+ );
1233
+ response = map(response, value);
1221
1234
  id._debugInfo &&
1222
1235
  ("object" !== typeof response ||
1223
1236
  null === response ||
@@ -1416,7 +1429,8 @@
1416
1429
  nonce,
1417
1430
  temporaryReferences,
1418
1431
  findSourceMapURL,
1419
- replayConsole
1432
+ replayConsole,
1433
+ environmentName
1420
1434
  ) {
1421
1435
  var chunks = new Map();
1422
1436
  this._bundlerConfig = bundlerConfig;
@@ -1432,6 +1446,8 @@
1432
1446
  this._tempRefs = temporaryReferences;
1433
1447
  this._debugFindSourceMapURL = findSourceMapURL;
1434
1448
  this._replayConsole = replayConsole;
1449
+ this._rootEnvironmentName =
1450
+ void 0 === environmentName ? "Server" : environmentName;
1435
1451
  this._fromJSON = createFromJSONCallback(this);
1436
1452
  }
1437
1453
  function resolveBuffer(response, id, buffer) {
@@ -1660,8 +1676,15 @@
1660
1676
  }
1661
1677
  );
1662
1678
  }
1663
- function createFakeFunction(name, filename, sourceMap, line, col) {
1664
- name || (name = "(anonymous)");
1679
+ function createFakeFunction(
1680
+ name,
1681
+ filename,
1682
+ sourceMap,
1683
+ line,
1684
+ col,
1685
+ environmentName
1686
+ ) {
1687
+ name || (name = "<anonymous>");
1665
1688
  var encodedName = JSON.stringify(name);
1666
1689
  1 >= line
1667
1690
  ? ((line = encodedName.length + 7),
@@ -1683,6 +1706,8 @@
1683
1706
  sourceMap
1684
1707
  ? ((col +=
1685
1708
  "\n//# sourceURL=rsc://React/" +
1709
+ encodeURIComponent(environmentName) +
1710
+ "/" +
1686
1711
  filename +
1687
1712
  "?" +
1688
1713
  fakeFunctionIdx++),
@@ -1705,7 +1730,8 @@
1705
1730
  (null != debugInfo.stack &&
1706
1731
  (debugInfo.debugStack = createFakeJSXCallStackInDEV(
1707
1732
  response,
1708
- debugInfo.stack
1733
+ debugInfo.stack,
1734
+ null == debugInfo.env ? "" : debugInfo.env
1709
1735
  )),
1710
1736
  null != debugInfo.owner &&
1711
1737
  initializeFakeStack(response, debugInfo.owner));
@@ -2094,20 +2120,32 @@
2094
2120
  fakeFunctionCache = new Map(),
2095
2121
  fakeFunctionIdx = 0,
2096
2122
  createFakeJSXCallStack = {
2097
- "react-stack-bottom-frame": function (response, stack) {
2123
+ "react-stack-bottom-frame": function (
2124
+ response,
2125
+ stack,
2126
+ environmentName
2127
+ ) {
2098
2128
  for (var callStack = fakeJSXCallSite, i = 0; i < stack.length; i++) {
2099
2129
  var frame = stack[i],
2100
- frameKey = frame.join("-"),
2130
+ frameKey = frame.join("-") + "-" + environmentName,
2101
2131
  fn = fakeFunctionCache.get(frameKey);
2102
2132
  if (void 0 === fn) {
2103
2133
  fn = frame[0];
2104
2134
  var filename = frame[1],
2105
2135
  line = frame[2];
2106
2136
  frame = frame[3];
2107
- var sourceMap = response._debugFindSourceMapURL
2108
- ? response._debugFindSourceMapURL(filename)
2137
+ var findSourceMapURL = response._debugFindSourceMapURL;
2138
+ findSourceMapURL = findSourceMapURL
2139
+ ? findSourceMapURL(filename, environmentName)
2109
2140
  : null;
2110
- fn = createFakeFunction(fn, filename, sourceMap, line, frame);
2141
+ fn = createFakeFunction(
2142
+ fn,
2143
+ filename,
2144
+ findSourceMapURL,
2145
+ line,
2146
+ frame,
2147
+ environmentName
2148
+ );
2111
2149
  fakeFunctionCache.set(frameKey, fn);
2112
2150
  }
2113
2151
  callStack = fn.bind(null, callStack);
@@ -2127,7 +2165,8 @@
2127
2165
  options && "string" === typeof options.nonce ? options.nonce : void 0,
2128
2166
  void 0,
2129
2167
  options && options.findSourceMapURL ? options.findSourceMapURL : void 0,
2130
- options ? !0 === options.replayConsoleLogs : !1
2168
+ options ? !0 === options.replayConsoleLogs : !1,
2169
+ options && options.environmentName ? options.environmentName : void 0
2131
2170
  );
2132
2171
  stream.on("data", function (chunk) {
2133
2172
  if ("string" === typeof chunk) {
@@ -901,10 +901,23 @@ function getOutlinedModel(response, reference, parentObject, key, map) {
901
901
  }
902
902
  switch (id.status) {
903
903
  case "fulfilled":
904
- parentObject = id.value;
905
- for (key = 1; key < reference.length; key++)
906
- parentObject = parentObject[reference[key]];
907
- return map(response, parentObject);
904
+ var value = id.value;
905
+ for (id = 1; id < reference.length; id++)
906
+ if (
907
+ ((value = value[reference[id]]), value.$$typeof === REACT_LAZY_TYPE)
908
+ )
909
+ if (((value = value._payload), "fulfilled" === value.status))
910
+ value = value.value;
911
+ else
912
+ return waitForReference(
913
+ value,
914
+ parentObject,
915
+ key,
916
+ response,
917
+ map,
918
+ reference.slice(id)
919
+ );
920
+ return map(response, value);
908
921
  case "pending":
909
922
  case "blocked":
910
923
  return waitForReference(id, parentObject, key, response, map, reference);
@@ -1189,10 +1189,23 @@
1189
1189
  }
1190
1190
  switch (id.status) {
1191
1191
  case "fulfilled":
1192
- parentObject = id.value;
1193
- for (key = 1; key < reference.length; key++)
1194
- parentObject = parentObject[reference[key]];
1195
- response = map(response, parentObject);
1192
+ for (var value = id.value, i = 1; i < reference.length; i++)
1193
+ if (
1194
+ ((value = value[reference[i]]),
1195
+ value.$$typeof === REACT_LAZY_TYPE)
1196
+ )
1197
+ if (((value = value._payload), "fulfilled" === value.status))
1198
+ value = value.value;
1199
+ else
1200
+ return waitForReference(
1201
+ value,
1202
+ parentObject,
1203
+ key,
1204
+ response,
1205
+ map,
1206
+ reference.slice(i)
1207
+ );
1208
+ response = map(response, value);
1196
1209
  id._debugInfo &&
1197
1210
  ("object" !== typeof response ||
1198
1211
  null === response ||
@@ -1391,7 +1404,8 @@
1391
1404
  nonce,
1392
1405
  temporaryReferences,
1393
1406
  findSourceMapURL,
1394
- replayConsole
1407
+ replayConsole,
1408
+ environmentName
1395
1409
  ) {
1396
1410
  var chunks = new Map();
1397
1411
  this._bundlerConfig = bundlerConfig;
@@ -1407,6 +1421,8 @@
1407
1421
  this._tempRefs = temporaryReferences;
1408
1422
  this._debugFindSourceMapURL = findSourceMapURL;
1409
1423
  this._replayConsole = replayConsole;
1424
+ this._rootEnvironmentName =
1425
+ void 0 === environmentName ? "Server" : environmentName;
1410
1426
  this._fromJSON = createFromJSONCallback(this);
1411
1427
  }
1412
1428
  function resolveBuffer(response, id, buffer) {
@@ -1635,8 +1651,15 @@
1635
1651
  }
1636
1652
  );
1637
1653
  }
1638
- function createFakeFunction(name, filename, sourceMap, line, col) {
1639
- name || (name = "(anonymous)");
1654
+ function createFakeFunction(
1655
+ name,
1656
+ filename,
1657
+ sourceMap,
1658
+ line,
1659
+ col,
1660
+ environmentName
1661
+ ) {
1662
+ name || (name = "<anonymous>");
1640
1663
  var encodedName = JSON.stringify(name);
1641
1664
  1 >= line
1642
1665
  ? ((line = encodedName.length + 7),
@@ -1658,6 +1681,8 @@
1658
1681
  sourceMap
1659
1682
  ? ((col +=
1660
1683
  "\n//# sourceURL=rsc://React/" +
1684
+ encodeURIComponent(environmentName) +
1685
+ "/" +
1661
1686
  filename +
1662
1687
  "?" +
1663
1688
  fakeFunctionIdx++),
@@ -1680,7 +1705,8 @@
1680
1705
  (null != debugInfo.stack &&
1681
1706
  (debugInfo.debugStack = createFakeJSXCallStackInDEV(
1682
1707
  response,
1683
- debugInfo.stack
1708
+ debugInfo.stack,
1709
+ null == debugInfo.env ? "" : debugInfo.env
1684
1710
  )),
1685
1711
  null != debugInfo.owner &&
1686
1712
  initializeFakeStack(response, debugInfo.owner));
@@ -2069,20 +2095,32 @@
2069
2095
  fakeFunctionCache = new Map(),
2070
2096
  fakeFunctionIdx = 0,
2071
2097
  createFakeJSXCallStack = {
2072
- "react-stack-bottom-frame": function (response, stack) {
2098
+ "react-stack-bottom-frame": function (
2099
+ response,
2100
+ stack,
2101
+ environmentName
2102
+ ) {
2073
2103
  for (var callStack = fakeJSXCallSite, i = 0; i < stack.length; i++) {
2074
2104
  var frame = stack[i],
2075
- frameKey = frame.join("-"),
2105
+ frameKey = frame.join("-") + "-" + environmentName,
2076
2106
  fn = fakeFunctionCache.get(frameKey);
2077
2107
  if (void 0 === fn) {
2078
2108
  fn = frame[0];
2079
2109
  var filename = frame[1],
2080
2110
  line = frame[2];
2081
2111
  frame = frame[3];
2082
- var sourceMap = response._debugFindSourceMapURL
2083
- ? response._debugFindSourceMapURL(filename)
2112
+ var findSourceMapURL = response._debugFindSourceMapURL;
2113
+ findSourceMapURL = findSourceMapURL
2114
+ ? findSourceMapURL(filename, environmentName)
2084
2115
  : null;
2085
- fn = createFakeFunction(fn, filename, sourceMap, line, frame);
2116
+ fn = createFakeFunction(
2117
+ fn,
2118
+ filename,
2119
+ findSourceMapURL,
2120
+ line,
2121
+ frame,
2122
+ environmentName
2123
+ );
2086
2124
  fakeFunctionCache.set(frameKey, fn);
2087
2125
  }
2088
2126
  callStack = fn.bind(null, callStack);
@@ -2102,7 +2140,8 @@
2102
2140
  options && "string" === typeof options.nonce ? options.nonce : void 0,
2103
2141
  void 0,
2104
2142
  options && options.findSourceMapURL ? options.findSourceMapURL : void 0,
2105
- options ? !0 === options.replayConsoleLogs : !1
2143
+ options ? !0 === options.replayConsoleLogs : !1,
2144
+ options && options.environmentName ? options.environmentName : void 0
2106
2145
  );
2107
2146
  stream.on("data", function (chunk) {
2108
2147
  if ("string" === typeof chunk) {
@@ -880,10 +880,23 @@ function getOutlinedModel(response, reference, parentObject, key, map) {
880
880
  }
881
881
  switch (id.status) {
882
882
  case "fulfilled":
883
- parentObject = id.value;
884
- for (key = 1; key < reference.length; key++)
885
- parentObject = parentObject[reference[key]];
886
- return map(response, parentObject);
883
+ var value = id.value;
884
+ for (id = 1; id < reference.length; id++)
885
+ if (
886
+ ((value = value[reference[id]]), value.$$typeof === REACT_LAZY_TYPE)
887
+ )
888
+ if (((value = value._payload), "fulfilled" === value.status))
889
+ value = value.value;
890
+ else
891
+ return waitForReference(
892
+ value,
893
+ parentObject,
894
+ key,
895
+ response,
896
+ map,
897
+ reference.slice(id)
898
+ );
899
+ return map(response, value);
887
900
  case "pending":
888
901
  case "blocked":
889
902
  return waitForReference(id, parentObject, key, response, map, reference);