mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Instead of https://github.com/facebook/react/pull/27664, we can just
exclude `unstable_server-external-runtime.js` from having sourcemaps for
now.
We should consider removing manual copying of this artifact in
https://github.com/facebook/react/blob/52d542ad6d410008c495084f511247f43387055f/.github/workflows/commit_artifacts.yml#L136-L138
As described in https://github.com/facebook/react/pull/27664, this
artifact doesn't have any effect on the `hash`, which is used for
generating React version identifier.
DiffTrain build for [78c71bc545](https://github.com/facebook/react/commit/78c71bc545bf5c0fdeedc023b69fafe05d988067)
8 lines
3.2 KiB
JavaScript
8 lines
3.2 KiB
JavaScript
(function(){function p(b,a,d){a=document.getElementById(a);a.parentNode.removeChild(a);var c=document.getElementById(b);if(c){b=c.previousSibling;if(d)b.data="$!",c.setAttribute("data-dgst",d);else{d=b.parentNode;c=b.nextSibling;var f=0;do{if(c&&8===c.nodeType){var e=c.data;if("/$"===e)if(0===f)break;else f--;else"$"!==e&&"$?"!==e&&"$!"!==e||f++}e=c.nextSibling;d.removeChild(c);c=e}while(c);for(;a.firstChild;)d.insertBefore(a.firstChild,c);b.data="$"}b._reactRetry&&b._reactRetry()}}function B(b,a,
|
|
d){for(var c=new Map,f=document,e,h,q=f.querySelectorAll("link[data-precedence],style[data-precedence]"),w=[],r=0;h=q[r++];)"not all"===h.getAttribute("media")?w.push(h):("LINK"===h.tagName&&v.set(h.getAttribute("href"),h),c.set(h.dataset.precedence,e=h));h=0;q=[];var t,g;for(r=!0;;){if(r){var n=d[h++];if(!n){r=!1;h=0;continue}var k=!1,u=0;var l=n[u++];if(g=v.get(l)){var m=g._p;k=!0}else{g=f.createElement("link");g.href=l;g.rel="stylesheet";for(g.dataset.precedence=t=n[u++];m=n[u++];)g.setAttribute(m,
|
|
n[u++]);m=g._p=new Promise(function(C,D){g.onload=C;g.onerror=D});v.set(l,g)}l=g.getAttribute("media");!m||"l"===m.s||l&&!window.matchMedia(l).matches||q.push(m);if(k)continue}else{g=w[h++];if(!g)break;t=g.getAttribute("data-precedence");g.removeAttribute("media")}k=c.get(t)||e;k===e&&(e=g);c.set(t,g);k?k.parentNode.insertBefore(g,k.nextSibling):(k=f.head,k.insertBefore(g,k.firstChild))}Promise.all(q).then(p.bind(null,b,a,""),p.bind(null,b,a,"Resource failed to load"))}function x(b){b=b.querySelectorAll("template");
|
|
for(var a=0;a<b.length;a++)y(b[a])}function z(b){function a(c){for(var f=0;f<c.length;f++)for(var e=c[f].addedNodes,h=0;h<e.length;h++)e[h].parentNode&&y(e[h])}var d=new MutationObserver(a);d.observe(b,{childList:!0});window.addEventListener("DOMContentLoaded",function(){a(d.takeRecords());d.disconnect()})}function y(b){if(1===b.nodeType&&b.dataset){var a=b.dataset;if(null!=a.rxi){var d=a.dgst,c=a.msg,f=a.stck,e=document.getElementById(a.bid);e&&(a=e.previousSibling,a.data="$!",e=e.dataset,d&&(e.dgst=
|
|
d),c&&(e.msg=c),f&&(e.stck=f),a._reactRetry&&a._reactRetry());b.remove()}else if(null!=a.rri)B(a.bid,a.sid,JSON.parse(a.sty)),b.remove();else if(null!=a.rci)p(a.bid,a.sid),b.remove();else if(null!=a.rsi){d=a.pid;c=document.getElementById(a.sid);d=document.getElementById(d);for(c.parentNode.removeChild(c);c.firstChild;)d.parentNode.insertBefore(c.firstChild,d);d.parentNode.removeChild(d);b.remove()}}}var v=new Map;(function(){addEventListener("submit",function(b){if(!b.defaultPrevented){var a=b.target,
|
|
d=b.submitter,c=a.action,f=d;if(d){var e=d.getAttribute("formAction");null!=e&&(c=e,f=null)}"javascript:throw new Error('A React form was unexpectedly submitted.')"===c&&(b.preventDefault(),f?(b=document.createElement("input"),b.name=f.name,b.value=f.value,f.parentNode.insertBefore(b,f),f=new FormData(a),b.parentNode.removeChild(b)):f=new FormData(a),b=a.getRootNode(),(b.$$reactFormReplay=b.$$reactFormReplay||[]).push(a,d,f))}})})();window.$RC||(window.$RC=p,window.$RM=new Map);if(null!=document.body)"loading"===
|
|
document.readyState&&z(document.body),x(document.body);else{var A=new MutationObserver(function(){null!=document.body&&("loading"===document.readyState&&z(document.body),x(document.body),A.disconnect())});A.observe(document.documentElement,{childList:!0})}})();
|