@@ -43,14 +43,13 @@ function ServerHTML(props) {
43
43
const { asyncComponentsState, helmet, nonce, reactAppString } = props ;
44
44
45
45
// Creates an inline script definition that is protected by the nonce.
46
- const inlineScript = body => (
47
- < script nonce = { nonce } type = "text/javascript" dangerouslySetInnerHTML = { { __html : body } } />
48
- ) ;
46
+ const inlineScript = body =>
47
+ < script nonce = { nonce } type = "text/javascript" dangerouslySetInnerHTML = { { __html : body } } /> ;
49
48
50
49
const headerElements = removeNil ( [
50
+ ...ifElse ( helmet ) ( ( ) => helmet . meta . toComponent ( ) , [ ] ) ,
51
51
...ifElse ( helmet ) ( ( ) => helmet . title . toComponent ( ) , [ ] ) ,
52
52
...ifElse ( helmet ) ( ( ) => helmet . base . toComponent ( ) , [ ] ) ,
53
- ...ifElse ( helmet ) ( ( ) => helmet . meta . toComponent ( ) , [ ] ) ,
54
53
...ifElse ( helmet ) ( ( ) => helmet . link . toComponent ( ) , [ ] ) ,
55
54
ifElse ( clientEntryAssets && clientEntryAssets . css ) ( ( ) => stylesheetTag ( clientEntryAssets . css ) ) ,
56
55
...ifElse ( helmet ) ( ( ) => helmet . style . toComponent ( ) , [ ] ) ,
@@ -83,7 +82,9 @@ function ServerHTML(props) {
83
82
process . env . BUILD_FLAG_IS_DEV === 'true' && config ( 'bundles.client.devVendorDLL.enabled' ) ,
84
83
) ( ( ) =>
85
84
scriptTag (
86
- `${ config ( 'bundles.client.webPath' ) } ${ config ( 'bundles.client.devVendorDLL.name' ) } .js?t=${ Date . now ( ) } ` ,
85
+ `${ config ( 'bundles.client.webPath' ) } ${ config (
86
+ 'bundles.client.devVendorDLL.name' ,
87
+ ) } .js?t=${ Date . now ( ) } `,
87
88
) ,
88
89
) ,
89
90
ifElse ( clientEntryAssets && clientEntryAssets . js ) ( ( ) => scriptTag ( clientEntryAssets . js ) ) ,
@@ -93,10 +94,16 @@ function ServerHTML(props) {
93
94
return (
94
95
< HTML
95
96
htmlAttributes = { ifElse ( helmet ) ( ( ) => helmet . htmlAttributes . toComponent ( ) , null ) }
96
- headerElements = { headerElements . map ( ( x , idx ) => (
97
- < KeyedComponent key = { idx } > { x } </ KeyedComponent >
98
- ) ) }
99
- bodyElements = { bodyElements . map ( ( x , idx ) => < KeyedComponent key = { idx } > { x } </ KeyedComponent > ) }
97
+ headerElements = { headerElements . map ( ( x , idx ) =>
98
+ ( < KeyedComponent key = { idx } >
99
+ { x }
100
+ </ KeyedComponent > ) ,
101
+ ) }
102
+ bodyElements = { bodyElements . map ( ( x , idx ) =>
103
+ ( < KeyedComponent key = { idx } >
104
+ { x }
105
+ </ KeyedComponent > ) ,
106
+ ) }
100
107
appBodyString = { reactAppString }
101
108
/>
102
109
) ;
0 commit comments