feat(es/codegen): Remove the trailing comma of binding patterns (#6078)

This commit is contained in:
IWANABETHATGUY 2022-10-07 15:45:20 +08:00 committed by GitHub
parent 477626b9ff
commit 8003dc8563
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
42 changed files with 48 additions and 50 deletions

View File

@ -113,7 +113,7 @@ export async function renderToHTML(req, res, pathname, query, renderOpts) {
renderOpts.devOnlyCacheBusterQueryString = renderOpts.dev ? renderOpts.devOnlyCacheBusterQueryString || `?ts=${Date.now()}` : "";
// don't modify original query object
query = Object.assign({}, query);
const { err , dev =false , ampPath ="" , App , Document , pageConfig ={} , Component , buildManifest , fontManifest , reactLoadableManifest , ErrorDebug , getStaticProps , getStaticPaths , getServerSideProps , isDataReq , params , previewProps , basePath , devOnlyCacheBusterQueryString , supportsDynamicHTML , concurrentFeatures , } = renderOpts;
const { err , dev =false , ampPath ="" , App , Document , pageConfig ={} , Component , buildManifest , fontManifest , reactLoadableManifest , ErrorDebug , getStaticProps , getStaticPaths , getServerSideProps , isDataReq , params , previewProps , basePath , devOnlyCacheBusterQueryString , supportsDynamicHTML , concurrentFeatures } = renderOpts;
const getFontDefinition = (url)=>{
if (fontManifest) {
return getFontDefinitionFromManifest(url, fontManifest);
@ -610,7 +610,7 @@ export async function renderToHTML(req, res, pathname, query, renderOpts) {
}
const hybridAmp = ampState.hybrid;
const docComponentsRendered = {};
const { assetPrefix , buildId , customServer , defaultLocale , disableOptimizedLoading , domainLocales , locale , locales , runtimeConfig , } = renderOpts;
const { assetPrefix , buildId , customServer , defaultLocale , disableOptimizedLoading , domainLocales , locale , locales , runtimeConfig } = renderOpts;
const htmlProps = {
__NEXT_DATA__: {
props,

View File

@ -8,7 +8,7 @@ var { a2 } = {};
// V is an object assignment pattern and, for each assignment property P in V,
// S has an apparent property with the property name specified in
// P of a type that is assignable to the target given in P, or
var { b1 , } = {
var { b1 } = {
b1: 1
};
var { b2: { b21 } = {

View File

@ -1,5 +1,5 @@
//// [destructuringObjectBindingPatternAndAssignment1ES6.ts]
var { a1 } = void 0, { a2 } = {}, { b1 , } = {
var { a1 } = void 0, { a2 } = {}, { b1 } = {
b1: 1
}, { b2: { b21 } = {
b21: "string"

View File

@ -89,7 +89,7 @@ var { e: [e1, e2, e3 = {
}
]
};
var { f: [f1, f2, { f3: f4 , f5 }, ] } = {
var { f: [f1, f2, { f3: f4 , f5 }] } = {
f: [
1,
2,

View File

@ -60,7 +60,7 @@ var { a1 , a2 } = {
b4: 0
}
]
}, { f: [f1, f2, { f3: f4 , f5 }, ] } = {
}, { f: [f1, f2, { f3: f4 , f5 }] } = {
f: [
1,
2,

View File

@ -12,7 +12,7 @@ class A {
d: 'd',
e: 'e'
};
const { [_class_private_field_get(this, _a)]: a , [_class_private_field_get(this, _b)]: b , [_class_private_field_get(this, _c)]: c , [_class_private_field_get(this, _d)]: d , [_class_private_field_set(this, _e, 'e')]: e , } = data;
const { [_class_private_field_get(this, _a)]: a , [_class_private_field_get(this, _b)]: b , [_class_private_field_get(this, _c)]: c , [_class_private_field_get(this, _d)]: d , [_class_private_field_set(this, _e, 'e')]: e } = data;
console.log(a, b, c, d, e);
const a1 = data[_class_private_field_get(this, _a)];
const b1 = data[_class_private_field_get(this, _b)];

View File

@ -11,7 +11,7 @@ new class {
c: 'c',
d: 'd',
e: 'e'
}, { [_class_private_field_get(this, _a)]: a , [_class_private_field_get(this, _b)]: b , [_class_private_field_get(this, _c)]: c , [_class_private_field_get(this, _d)]: d , [_class_private_field_set(this, _e, 'e')]: e , } = data;
}, { [_class_private_field_get(this, _a)]: a , [_class_private_field_get(this, _b)]: b , [_class_private_field_get(this, _c)]: c , [_class_private_field_get(this, _d)]: d , [_class_private_field_set(this, _e, 'e')]: e } = data;
console.log(a, b, c, d, e);
let a1 = data[_class_private_field_get(this, _a)], b1 = data[_class_private_field_get(this, _b)], c1 = data[_class_private_field_get(this, _c)], d1 = data[_class_private_field_get(this, _d)];
data[_class_private_field_get(this, _e)], console.log(a1, b1, c1, d1);

View File

@ -17,7 +17,7 @@ class A {
d: 'd',
e: 'e'
};
const { [this.#a]: a , [this.#b]: b , [this.#c]: c , [this.#d]: d , [this.#e = 'e']: e , } = data;
const { [this.#a]: a , [this.#b]: b , [this.#c]: c , [this.#d]: d , [this.#e = 'e']: e } = data;
console.log(a, b, c, d, e);
const a1 = data[this.#a];
const b1 = data[this.#b];

View File

@ -15,7 +15,7 @@ new class {
c: 'c',
d: 'd',
e: 'e'
}, { [this.#a]: a , [this.#b]: b , [this.#c]: c , [this.#d]: d , [this.#e = 'e']: e , } = data;
}, { [this.#a]: a , [this.#b]: b , [this.#c]: c , [this.#d]: d , [this.#e = 'e']: e } = data;
console.log(a, b, c, d, e);
let a1 = data[this.#a], b1 = data[this.#b], c1 = data[this.#c], d1 = data[this.#d];
data[this.#e], console.log(a1, b1, c1, d1);

View File

@ -33,7 +33,7 @@ class Test {
var _tmp1;
_tmp1 = {
foo
}, _class_private_field_get(this, _value).foo = _extends({}, _tmp1.foo), ({ foo: {} , } = _tmp1), _tmp1; //error
}, _class_private_field_get(this, _value).foo = _extends({}, _tmp1.foo), ({ foo: {} } = _tmp1), _tmp1; //error
let r = {
o: _class_private_field_get(this, _value)
}; //error

View File

@ -1326,7 +1326,7 @@ const regExpEscapeChars = [
"{",
"|"
];
const { basename: basename2 , delimiter: delimiter2 , dirname: dirname2 , extname: extname2 , format: format2 , fromFileUrl: fromFileUrl2 , isAbsolute: isAbsolute2 , join: join2 , normalize: normalize2 , parse: parse3 , relative: relative2 , resolve: resolve2 , sep: sep2 , toFileUrl: toFileUrl2 , toNamespacedPath: toNamespacedPath2 , } = path;
const { basename: basename2 , delimiter: delimiter2 , dirname: dirname2 , extname: extname2 , format: format2 , fromFileUrl: fromFileUrl2 , isAbsolute: isAbsolute2 , join: join2 , normalize: normalize2 , parse: parse3 , relative: relative2 , resolve: resolve2 , sep: sep2 , toFileUrl: toFileUrl2 , toNamespacedPath: toNamespacedPath2 } = path;
const rangeEscapeChars = [
"-",
"\\",

View File

@ -1336,7 +1336,7 @@ const regExpEscapeChars = [
];
const win32 = mod1;
const posix = mod2;
const { basename: basename2 , delimiter: delimiter2 , dirname: dirname2 , extname: extname2 , format: format2 , fromFileUrl: fromFileUrl2 , isAbsolute: isAbsolute2 , join: join2 , normalize: normalize2 , parse: parse3 , relative: relative2 , resolve: resolve2 , sep: sep2 , toFileUrl: toFileUrl2 , toNamespacedPath: toNamespacedPath2 , } = path;
const { basename: basename2 , delimiter: delimiter2 , dirname: dirname2 , extname: extname2 , format: format2 , fromFileUrl: fromFileUrl2 , isAbsolute: isAbsolute2 , join: join2 , normalize: normalize2 , parse: parse3 , relative: relative2 , resolve: resolve2 , sep: sep2 , toFileUrl: toFileUrl2 , toNamespacedPath: toNamespacedPath2 } = path;
const rangeEscapeChars = [
"-",
"\\",

View File

@ -1195,7 +1195,7 @@ const mod1 = {
toFileUrl: toFileUrl1
};
const path = isWindows ? mod : mod1;
const { basename: basename2 , delimiter: delimiter2 , dirname: dirname2 , extname: extname2 , format: format2 , fromFileUrl: fromFileUrl2 , isAbsolute: isAbsolute2 , join: join2 , normalize: normalize2 , parse: parse2 , relative: relative2 , resolve: resolve2 , sep: sep2 , toFileUrl: toFileUrl2 , toNamespacedPath: toNamespacedPath2 , } = path;
const { basename: basename2 , delimiter: delimiter2 , dirname: dirname2 , extname: extname2 , format: format2 , fromFileUrl: fromFileUrl2 , isAbsolute: isAbsolute2 , join: join2 , normalize: normalize2 , parse: parse2 , relative: relative2 , resolve: resolve2 , sep: sep2 , toFileUrl: toFileUrl2 , toNamespacedPath: toNamespacedPath2 } = path;
const MIN_BUF_SIZE = 16;
const CR = "\r".charCodeAt(0);
const LF = "\n".charCodeAt(0);

View File

@ -1203,7 +1203,7 @@ const mod1 = {
toFileUrl: toFileUrl1
};
const path = isWindows ? mod : mod1;
const { basename: basename2 , delimiter: delimiter2 , dirname: dirname2 , extname: extname2 , format: format2 , fromFileUrl: fromFileUrl2 , isAbsolute: isAbsolute2 , join: join2 , normalize: normalize2 , parse: parse2 , relative: relative2 , resolve: resolve2 , sep: sep2 , toFileUrl: toFileUrl2 , toNamespacedPath: toNamespacedPath2 , } = path;
const { basename: basename2 , delimiter: delimiter2 , dirname: dirname2 , extname: extname2 , format: format2 , fromFileUrl: fromFileUrl2 , isAbsolute: isAbsolute2 , join: join2 , normalize: normalize2 , parse: parse2 , relative: relative2 , resolve: resolve2 , sep: sep2 , toFileUrl: toFileUrl2 , toNamespacedPath: toNamespacedPath2 } = path;
const DEFAULT_BUF_SIZE = 4096;
const MIN_BUF_SIZE = 16;
const MAX_CONSECUTIVE_EMPTY_READS = 100;

View File

@ -100,13 +100,11 @@ add_bitflags!(
UnionTypeConstituents: BarDelimited | SpaceBetweenSiblings | SingleLine,
IntersectionTypeConstituents: AmpersandDelimited | SpaceBetweenSiblings | SingleLine,
ObjectBindingPatternElements: SingleLine
| AllowTrailingComma
| SpaceBetweenBraces
| CommaDelimited
| SpaceBetweenSiblings
| NoSpaceIfEmpty,
ArrayBindingPatternElements: SingleLine
| AllowTrailingComma
| CommaDelimited
| SpaceBetweenSiblings
| NoSpaceIfEmpty,

View File

@ -1 +1 @@
[,a,]=1;
[,a]=1;

View File

@ -1 +1 @@
[a,]=1;
[a]=1;

View File

@ -1 +1 @@
let[a,]=1;
let[a]=1;

View File

@ -1 +1 @@
let[a,]=1;
let[a]=1;

View File

@ -1 +1 @@
[a,]=1;
[a]=1;

View File

@ -1 +1 @@
let[a,]=[1];
let[a]=[1];

View File

@ -1 +1 @@
[, a, ] = 1;
[, a] = 1;

View File

@ -1 +1 @@
({ a , b , } = 1);
({ a , b } = 1);

View File

@ -1 +1 @@
let { a , } = 1;
let { a } = 1;

View File

@ -1 +1 @@
[a, ] = 1;
[a] = 1;

View File

@ -1 +1 @@
({ a =1 , } = 2);
({ a =1 } = 2);

View File

@ -1 +1 @@
({ a: b , } = 1);
({ a: b } = 1);

View File

@ -1 +1 @@
let [a, ] = 1;
let [a] = 1;

View File

@ -1 +1 @@
let [a, ] = 1;
let [a] = 1;

View File

@ -1 +1 @@
[a, ] = 1;
[a] = 1;

View File

@ -1,3 +1,3 @@
let [a, ] = [
let [a] = [
1
];

View File

@ -1 +1 @@
({ a , } = 1);
({ a } = 1);

View File

@ -2805,7 +2805,7 @@
let s = pn;
const i = new Pt(e.path.child("")), r = this.docs.getIteratorFrom(i);
for(; r.hasNext();){
const { key: t1 , value: { document: i1 , readTime: o } , } = r.getNext();
const { key: t1 , value: { document: i1 , readTime: o } } = r.getNext();
if (!e.path.isPrefixOf(t1.path)) break;
0 >= o.compareTo(n) || Pe(e, i1) && (s = s.insert(i1.key, i1.clone()));
}

View File

@ -15,7 +15,7 @@ const isMultiIndexContext = (widget)=>hasMultipleIndices({
const isFirstWidgetIndex = isIndexWidget(firstWidget), isSecondWidgetIndex = isIndexWidget(secondWidget);
return isFirstWidgetIndex && !isSecondWidgetIndex ? -1 : !isFirstWidgetIndex && isSecondWidgetIndex ? 1 : 0;
};
export default function createInstantSearchManager({ indexName , initialState ={} , searchClient , resultsState , stalledSearchDelay , }) {
export default function createInstantSearchManager({ indexName , initialState ={} , searchClient , resultsState , stalledSearchDelay }) {
const helper = algoliasearchHelper(searchClient, indexName, {
...HIGHLIGHT_TAGS
});

View File

@ -15,7 +15,7 @@ const isMultiIndexContext = (widget)=>hasMultipleIndices({
const isFirstWidgetIndex = isIndexWidget(firstWidget), isSecondWidgetIndex = isIndexWidget(secondWidget);
return isFirstWidgetIndex && !isSecondWidgetIndex ? -1 : !isFirstWidgetIndex && isSecondWidgetIndex ? 1 : 0;
};
export default function createInstantSearchManager({ indexName , initialState ={} , searchClient , resultsState , stalledSearchDelay , }) {
export default function createInstantSearchManager({ indexName , initialState ={} , searchClient , resultsState , stalledSearchDelay }) {
const helper = algoliasearchHelper(searchClient, indexName, {
...HIGHLIGHT_TAGS
});

View File

@ -1,5 +1,5 @@
import _JSXStyle from "styled-jsx/style";
(({ right =!1 , top =!1 , sidebar , sidebarWidth =230 , hideOnMobile =!1 , breakpoint =730 , children , })=>(_JSXStyle.dynamic([
(({ right =!1 , top =!1 , sidebar , sidebarWidth =230 , hideOnMobile =!1 , breakpoint =730 , children })=>(_JSXStyle.dynamic([
[
"4507deac72c40d6c",
[

View File

@ -5903,7 +5903,7 @@
return {};
}, ThemeProvider = ({ children , ...props })=>{
var _ref, _props$theme, _ref2, _props$colorMode, _ref3, _props$dayScheme, _ref4, _props$nightScheme;
const { theme: fallbackTheme , colorMode: fallbackColorMode , dayScheme: fallbackDayScheme , nightScheme: fallbackNightScheme , } = useTheme(), theme = null !== (_ref = null !== (_props$theme = props.theme) && void 0 !== _props$theme ? _props$theme : fallbackTheme) && void 0 !== _ref ? _ref : lib_esm_theme, { resolvedServerColorMode } = getServerHandoff(), resolvedColorModePassthrough = react.useRef(resolvedServerColorMode), [colorMode, setColorMode] = react.useState(null !== (_ref2 = null !== (_props$colorMode = props.colorMode) && void 0 !== _props$colorMode ? _props$colorMode : fallbackColorMode) && void 0 !== _ref2 ? _ref2 : "day"), [dayScheme, setDayScheme] = react.useState(null !== (_ref3 = null !== (_props$dayScheme = props.dayScheme) && void 0 !== _props$dayScheme ? _props$dayScheme : fallbackDayScheme) && void 0 !== _ref3 ? _ref3 : defaultDayScheme), [nightScheme, setNightScheme] = react.useState(null !== (_ref4 = null !== (_props$nightScheme = props.nightScheme) && void 0 !== _props$nightScheme ? _props$nightScheme : fallbackNightScheme) && void 0 !== _ref4 ? _ref4 : defaultNightScheme), systemColorMode = function() {
const { theme: fallbackTheme , colorMode: fallbackColorMode , dayScheme: fallbackDayScheme , nightScheme: fallbackNightScheme } = useTheme(), theme = null !== (_ref = null !== (_props$theme = props.theme) && void 0 !== _props$theme ? _props$theme : fallbackTheme) && void 0 !== _ref ? _ref : lib_esm_theme, { resolvedServerColorMode } = getServerHandoff(), resolvedColorModePassthrough = react.useRef(resolvedServerColorMode), [colorMode, setColorMode] = react.useState(null !== (_ref2 = null !== (_props$colorMode = props.colorMode) && void 0 !== _props$colorMode ? _props$colorMode : fallbackColorMode) && void 0 !== _ref2 ? _ref2 : "day"), [dayScheme, setDayScheme] = react.useState(null !== (_ref3 = null !== (_props$dayScheme = props.dayScheme) && void 0 !== _props$dayScheme ? _props$dayScheme : fallbackDayScheme) && void 0 !== _ref3 ? _ref3 : defaultDayScheme), [nightScheme, setNightScheme] = react.useState(null !== (_ref4 = null !== (_props$nightScheme = props.nightScheme) && void 0 !== _props$nightScheme ? _props$nightScheme : fallbackNightScheme) && void 0 !== _ref4 ? _ref4 : defaultNightScheme), systemColorMode = function() {
const [systemColorMode, setSystemColorMode] = react.useState(getSystemColorMode);
return react.useEffect(()=>{
var _window, _window$matchMedia;
@ -6283,7 +6283,7 @@
}).apply(this, arguments);
}
const ButtonBase = (0, react.forwardRef)(({ children , as: Component = "button" , sx: sxProp = {} , ...props }, forwardedRef)=>{
const { leadingIcon: LeadingIcon , trailingIcon: TrailingIcon , variant ="default" , size ="medium" , } = props, { theme } = useTheme(), iconWrapStyles = {
const { leadingIcon: LeadingIcon , trailingIcon: TrailingIcon , variant ="default" , size ="medium" } = props, { theme } = useTheme(), iconWrapStyles = {
display: "inline-block"
}, sxStyles = cjs_default().all([
getButtonStyles(theme),
@ -6326,7 +6326,7 @@
as: "button"
}), children));
ButtonComponent.displayName = "Button";
const { get: getKey , compose: constants_compose , system: constants_system , } = styled_system_dist_index_esm_namespaceObject, constants_get = (key)=>{
const { get: getKey , compose: constants_compose , system: constants_system } = styled_system_dist_index_esm_namespaceObject, constants_get = (key)=>{
var fallback;
return void 0 === (fallback = getKey(lib_esm_theme, key)) && (fallback = null), function(props) {
return get(props.theme, key, fallback);

View File

@ -1066,7 +1066,7 @@
"onError",
"strategy"
], loadScript = (props)=>{
const { src , id , onLoad =()=>{} , onReady =null , dangerouslySetInnerHTML , children ="" , strategy ="afterInteractive" , onError , } = props, cacheKey = id || src;
const { src , id , onLoad =()=>{} , onReady =null , dangerouslySetInnerHTML , children ="" , strategy ="afterInteractive" , onError } = props, cacheKey = id || src;
if (cacheKey && LoadCache.has(cacheKey)) return;
if (ScriptCache.has(src)) {
LoadCache.add(cacheKey), ScriptCache.get(src).then(onLoad, onError);
@ -1291,7 +1291,7 @@
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.isInAmpMode = function() {
let { ampFirst =!1 , hybrid =!1 , hasQuery =!1 , } = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
let { ampFirst =!1 , hybrid =!1 , hasQuery =!1 } = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
return ampFirst || hybrid && hasQuery;
};
},

View File

@ -3182,7 +3182,7 @@
setOwner(owner) {
this.owner = owner;
}
setSignature({ id , owner , reward , tags , signature , }) {
setSignature({ id , owner , reward , tags , signature }) {
this.id = id, this.owner = owner, reward && (this.reward = reward), tags && (this.tags = tags), this.signature = signature;
}
async prepareChunks(data) {
@ -4580,7 +4580,7 @@
setOwner(owner) {
this.owner = owner;
}
setSignature({ id , owner , reward , tags , signature , }) {
setSignature({ id , owner , reward , tags , signature }) {
this.id = id, this.owner = owner, reward && (this.reward = reward), tags && (this.tags = tags), this.signature = signature;
}
async prepareChunks(data) {

View File

@ -106,7 +106,7 @@ function checkRedirectValues__1(redirect__7, req__7, method__7) {
export async function renderToHTML__1(req__8, res__8, pathname__8, query__8, renderOpts__8) {
renderOpts__8.devOnlyCacheBusterQueryString = renderOpts__8.dev ? renderOpts__8.devOnlyCacheBusterQueryString || `?ts=${Date.now()}` : "";
query__8 = Object.assign({}, query__8);
const { err__8 , dev__8 =false , ampPath__8 ="" , App__8 , Document__8 , pageConfig__8 ={} , Component__8 , buildManifest__8 , fontManifest__8 , reactLoadableManifest__8 , ErrorDebug__8 , getStaticProps__8 , getStaticPaths__8 , getServerSideProps__8 , isDataReq__8 , params__8 , previewProps__8 , basePath__8 , devOnlyCacheBusterQueryString__8 , supportsDynamicHTML__8 , concurrentFeatures__8 , } = renderOpts__8;
const { err__8 , dev__8 =false , ampPath__8 ="" , App__8 , Document__8 , pageConfig__8 ={} , Component__8 , buildManifest__8 , fontManifest__8 , reactLoadableManifest__8 , ErrorDebug__8 , getStaticProps__8 , getStaticPaths__8 , getServerSideProps__8 , isDataReq__8 , params__8 , previewProps__8 , basePath__8 , devOnlyCacheBusterQueryString__8 , supportsDynamicHTML__8 , concurrentFeatures__8 } = renderOpts__8;
const getFontDefinition__8 = (url__9)=>{
if (fontManifest__8) {
return getFontDefinitionFromManifest__1(url__9, fontManifest__8);
@ -567,7 +567,7 @@ export async function renderToHTML__1(req__8, res__8, pathname__8, query__8, ren
}
const hybridAmp__8 = ampState__8.hybrid;
const docComponentsRendered__8 = {};
const { assetPrefix__8 , buildId__8 , customServer__8 , defaultLocale__8 , disableOptimizedLoading__8 , domainLocales__8 , locale__8 , locales__8 , runtimeConfig__8 , } = renderOpts__8;
const { assetPrefix__8 , buildId__8 , customServer__8 , defaultLocale__8 , disableOptimizedLoading__8 , domainLocales__8 , locale__8 , locales__8 , runtimeConfig__8 } = renderOpts__8;
const htmlProps__8 = {
__NEXT_DATA__: {
props__8,

View File

@ -1,3 +1,3 @@
function Test1__1({ var1__2 =new Set<number>() , var2__2 ="123" , var3__2 ="456" , }) {
function Test1__1({ var1__2 =new Set<number>() , var2__2 ="123" , var3__2 ="456" }) {
console.log(var1__2, var2__2, var3__2);
}

View File

@ -111,7 +111,7 @@ export async function renderToHTML(req, res, pathname, query, renderOpts) {
renderOpts.devOnlyCacheBusterQueryString = renderOpts.dev ? renderOpts.devOnlyCacheBusterQueryString || `?ts=${Date.now()}` : "";
// don't modify original query object
query = Object.assign({}, query);
const { err , dev =false , ampPath ="" , App , Document , pageConfig ={} , Component , buildManifest , fontManifest , reactLoadableManifest , ErrorDebug , getStaticProps , getStaticPaths , getServerSideProps , isDataReq , params , previewProps , basePath , devOnlyCacheBusterQueryString , supportsDynamicHTML , concurrentFeatures , } = renderOpts;
const { err , dev =false , ampPath ="" , App , Document , pageConfig ={} , Component , buildManifest , fontManifest , reactLoadableManifest , ErrorDebug , getStaticProps , getStaticPaths , getServerSideProps , isDataReq , params , previewProps , basePath , devOnlyCacheBusterQueryString , supportsDynamicHTML , concurrentFeatures } = renderOpts;
const getFontDefinition = (url)=>{
if (fontManifest) {
return getFontDefinitionFromManifest(url, fontManifest);
@ -617,7 +617,7 @@ export async function renderToHTML(req, res, pathname, query, renderOpts) {
}
const hybridAmp = ampState.hybrid;
const docComponentsRendered = {};
const { assetPrefix , buildId , customServer , defaultLocale , disableOptimizedLoading , domainLocales , locale , locales , runtimeConfig , } = renderOpts;
const { assetPrefix , buildId , customServer , defaultLocale , disableOptimizedLoading , domainLocales , locale , locales , runtimeConfig } = renderOpts;
const htmlProps = {
__NEXT_DATA__: {
props,