.
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
|
||||
Files in the rsc directory are meant to be packaged as part of the RSC graph using next-app-loader.
|
||||
|
||||
*/ // When postpone is available in canary React we can switch to importing it directly
|
||||
export { Postpone } from '../dynamic-rendering';
|
||||
|
||||
//# sourceMappingURL=postpone.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../src/server/app-render/rsc/postpone.ts"],"sourcesContent":["/*\n\nFiles in the rsc directory are meant to be packaged as part of the RSC graph using next-app-loader.\n\n*/\n\n// When postpone is available in canary React we can switch to importing it directly\nexport { Postpone } from '../dynamic-rendering'\n"],"names":["Postpone"],"mappings":"AAAA;;;;AAIA,GAEA,oFAAoF;AACpF,SAASA,QAAQ,QAAQ,uBAAsB","ignoreList":[0]}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
|
||||
Files in the rsc directory are meant to be packaged as part of the RSC graph using next-app-loader.
|
||||
|
||||
*/ import ReactDOM from 'react-dom';
|
||||
export function preloadStyle(href, crossOrigin, nonce) {
|
||||
const opts = {
|
||||
as: 'style'
|
||||
};
|
||||
if (typeof crossOrigin === 'string') {
|
||||
opts.crossOrigin = crossOrigin;
|
||||
}
|
||||
if (typeof nonce === 'string') {
|
||||
opts.nonce = nonce;
|
||||
}
|
||||
ReactDOM.preload(href, opts);
|
||||
}
|
||||
export function preloadFont(href, type, crossOrigin, nonce) {
|
||||
const opts = {
|
||||
as: 'font',
|
||||
type
|
||||
};
|
||||
if (typeof crossOrigin === 'string') {
|
||||
opts.crossOrigin = crossOrigin;
|
||||
}
|
||||
if (typeof nonce === 'string') {
|
||||
opts.nonce = nonce;
|
||||
}
|
||||
ReactDOM.preload(href, opts);
|
||||
}
|
||||
export function preconnect(href, crossOrigin, nonce) {
|
||||
const opts = {};
|
||||
if (typeof crossOrigin === 'string') {
|
||||
opts.crossOrigin = crossOrigin;
|
||||
}
|
||||
if (typeof nonce === 'string') {
|
||||
opts.nonce = nonce;
|
||||
}
|
||||
;
|
||||
ReactDOM.preconnect(href, opts);
|
||||
}
|
||||
|
||||
//# sourceMappingURL=preloads.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../src/server/app-render/rsc/preloads.ts"],"sourcesContent":["/*\n\nFiles in the rsc directory are meant to be packaged as part of the RSC graph using next-app-loader.\n\n*/\n\nimport ReactDOM from 'react-dom'\n\nexport function preloadStyle(\n href: string,\n crossOrigin: string | undefined,\n nonce: string | undefined\n) {\n const opts: any = { as: 'style' }\n if (typeof crossOrigin === 'string') {\n opts.crossOrigin = crossOrigin\n }\n if (typeof nonce === 'string') {\n opts.nonce = nonce\n }\n ReactDOM.preload(href, opts)\n}\n\nexport function preloadFont(\n href: string,\n type: string,\n crossOrigin: string | undefined,\n nonce: string | undefined\n) {\n const opts: any = { as: 'font', type }\n if (typeof crossOrigin === 'string') {\n opts.crossOrigin = crossOrigin\n }\n if (typeof nonce === 'string') {\n opts.nonce = nonce\n }\n ReactDOM.preload(href, opts)\n}\n\nexport function preconnect(\n href: string,\n crossOrigin: string | undefined,\n nonce: string | undefined\n) {\n const opts: any = {}\n if (typeof crossOrigin === 'string') {\n opts.crossOrigin = crossOrigin\n }\n if (typeof nonce === 'string') {\n opts.nonce = nonce\n }\n ;(ReactDOM as any).preconnect(href, opts)\n}\n"],"names":["ReactDOM","preloadStyle","href","crossOrigin","nonce","opts","as","preload","preloadFont","type","preconnect"],"mappings":"AAAA;;;;AAIA,GAEA,OAAOA,cAAc,YAAW;AAEhC,OAAO,SAASC,aACdC,IAAY,EACZC,WAA+B,EAC/BC,KAAyB;IAEzB,MAAMC,OAAY;QAAEC,IAAI;IAAQ;IAChC,IAAI,OAAOH,gBAAgB,UAAU;QACnCE,KAAKF,WAAW,GAAGA;IACrB;IACA,IAAI,OAAOC,UAAU,UAAU;QAC7BC,KAAKD,KAAK,GAAGA;IACf;IACAJ,SAASO,OAAO,CAACL,MAAMG;AACzB;AAEA,OAAO,SAASG,YACdN,IAAY,EACZO,IAAY,EACZN,WAA+B,EAC/BC,KAAyB;IAEzB,MAAMC,OAAY;QAAEC,IAAI;QAAQG;IAAK;IACrC,IAAI,OAAON,gBAAgB,UAAU;QACnCE,KAAKF,WAAW,GAAGA;IACrB;IACA,IAAI,OAAOC,UAAU,UAAU;QAC7BC,KAAKD,KAAK,GAAGA;IACf;IACAJ,SAASO,OAAO,CAACL,MAAMG;AACzB;AAEA,OAAO,SAASK,WACdR,IAAY,EACZC,WAA+B,EAC/BC,KAAyB;IAEzB,MAAMC,OAAY,CAAC;IACnB,IAAI,OAAOF,gBAAgB,UAAU;QACnCE,KAAKF,WAAW,GAAGA;IACrB;IACA,IAAI,OAAOC,UAAU,UAAU;QAC7BC,KAAKD,KAAK,GAAGA;IACf;;IACEJ,SAAiBU,UAAU,CAACR,MAAMG;AACtC","ignoreList":[0]}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
|
||||
Files in the rsc directory are meant to be packaged as part of the RSC graph using next-app-loader.
|
||||
|
||||
*/ import * as React from 'react';
|
||||
function notImplemented() {
|
||||
throw Object.defineProperty(new Error('Taint can only be used with the taint flag.'), "__NEXT_ERROR_CODE", {
|
||||
value: "E354",
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
}
|
||||
export const taintObjectReference = process.env.__NEXT_EXPERIMENTAL_REACT ? React.experimental_taintObjectReference : notImplemented;
|
||||
export const taintUniqueValue = process.env.__NEXT_EXPERIMENTAL_REACT ? React.experimental_taintUniqueValue : notImplemented;
|
||||
|
||||
//# sourceMappingURL=taint.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../src/server/app-render/rsc/taint.ts"],"sourcesContent":["/*\n\nFiles in the rsc directory are meant to be packaged as part of the RSC graph using next-app-loader.\n\n*/\n\nimport * as React from 'react'\n\ntype Reference = object\ntype TaintableUniqueValue = string | bigint | ArrayBufferView\n\nfunction notImplemented() {\n throw new Error('Taint can only be used with the taint flag.')\n}\n\nexport const taintObjectReference: (\n message: string | undefined,\n object: Reference\n) => void = process.env.__NEXT_EXPERIMENTAL_REACT\n ? // @ts-ignore\n React.experimental_taintObjectReference\n : notImplemented\nexport const taintUniqueValue: (\n message: string | undefined,\n lifetime: Reference,\n value: TaintableUniqueValue\n) => void = process.env.__NEXT_EXPERIMENTAL_REACT\n ? // @ts-ignore\n React.experimental_taintUniqueValue\n : notImplemented\n"],"names":["React","notImplemented","Error","taintObjectReference","process","env","__NEXT_EXPERIMENTAL_REACT","experimental_taintObjectReference","taintUniqueValue","experimental_taintUniqueValue"],"mappings":"AAAA;;;;AAIA,GAEA,YAAYA,WAAW,QAAO;AAK9B,SAASC;IACP,MAAM,qBAAwD,CAAxD,IAAIC,MAAM,gDAAV,qBAAA;eAAA;oBAAA;sBAAA;IAAuD;AAC/D;AAEA,OAAO,MAAMC,uBAGDC,QAAQC,GAAG,CAACC,yBAAyB,GAE7CN,MAAMO,iCAAiC,GACvCN,eAAc;AAClB,OAAO,MAAMO,mBAIDJ,QAAQC,GAAG,CAACC,yBAAyB,GAE7CN,MAAMS,6BAA6B,GACnCR,eAAc","ignoreList":[0]}
|
||||
Reference in New Issue
Block a user