gatsby 4.24.0 → 4.24.2
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.
|
@@ -107,9 +107,7 @@ function headHandlerForSSR({
|
|
|
107
107
|
}
|
|
108
108
|
}));
|
|
109
109
|
} else {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
element = /*#__PURE__*/React.createElement(node.rawTagName, attributes, (_node$childNodes$ = node.childNodes[0]) === null || _node$childNodes$ === void 0 ? void 0 : _node$childNodes$.textContent);
|
|
110
|
+
element = node.textContent.length > 0 ? /*#__PURE__*/React.createElement(node.rawTagName, attributes, node.textContent) : /*#__PURE__*/React.createElement(node.rawTagName, attributes);
|
|
113
111
|
}
|
|
114
112
|
|
|
115
113
|
if (id) {
|
|
@@ -850,9 +850,6 @@ class ProdLoader extends BaseLoader {
|
|
|
850
850
|
return Promise.resolve();
|
|
851
851
|
}
|
|
852
852
|
|
|
853
|
-
console.log({
|
|
854
|
-
result
|
|
855
|
-
});
|
|
856
853
|
const pageData = result.payload;
|
|
857
854
|
const chunkName = pageData.componentChunkName;
|
|
858
855
|
const componentUrls = createComponentUrls(chunkName);
|
|
@@ -74,11 +74,14 @@ export function headHandlerForSSR({
|
|
|
74
74
|
/>
|
|
75
75
|
)
|
|
76
76
|
} else {
|
|
77
|
-
element =
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
77
|
+
element =
|
|
78
|
+
node.textContent.length > 0 ? (
|
|
79
|
+
<node.rawTagName {...attributes}>
|
|
80
|
+
{node.textContent}
|
|
81
|
+
</node.rawTagName>
|
|
82
|
+
) : (
|
|
83
|
+
<node.rawTagName {...attributes} />
|
|
84
|
+
)
|
|
82
85
|
}
|
|
83
86
|
|
|
84
87
|
if (id) {
|
package/cache-dir/loader.js
CHANGED
|
@@ -861,7 +861,6 @@ export class ProdLoader extends BaseLoader {
|
|
|
861
861
|
if (result.status !== PageResourceStatus.Success) {
|
|
862
862
|
return Promise.resolve()
|
|
863
863
|
}
|
|
864
|
-
console.log({ result })
|
|
865
864
|
const pageData = result.payload
|
|
866
865
|
const chunkName = pageData.componentChunkName
|
|
867
866
|
const componentUrls = createComponentUrls(chunkName)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby",
|
|
3
3
|
"description": "Blazing fast modern site generator for React",
|
|
4
|
-
"version": "4.24.
|
|
4
|
+
"version": "4.24.2",
|
|
5
5
|
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
|
|
6
6
|
"bin": {
|
|
7
7
|
"gatsby": "./cli.js"
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"gatsby-legacy-polyfills": "^2.24.0",
|
|
97
97
|
"gatsby-link": "^4.24.0",
|
|
98
98
|
"gatsby-page-utils": "^2.24.0",
|
|
99
|
-
"gatsby-parcel-config": "^0.15.
|
|
99
|
+
"gatsby-parcel-config": "^0.15.1",
|
|
100
100
|
"gatsby-plugin-page-creator": "^4.24.0",
|
|
101
101
|
"gatsby-plugin-typescript": "^4.24.0",
|
|
102
102
|
"gatsby-plugin-utils": "^3.18.0",
|
|
@@ -276,5 +276,5 @@
|
|
|
276
276
|
"yargs": {
|
|
277
277
|
"boolean-negation": false
|
|
278
278
|
},
|
|
279
|
-
"gitHead": "
|
|
279
|
+
"gitHead": "4c4222a96b7080ffba7c480490e2e12fc9cb7d09"
|
|
280
280
|
}
|