File tree 2 files changed +5
-2
lines changed
compiler/compile/render_ssr
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,7 @@ export default function ssr(
147
147
instance_javascript ,
148
148
...parent_bindings ,
149
149
css . code && b `$$result.css.add(#css);` ,
150
+ options . filename && b `$$result.renderedComponents.add('${ options . filename } ');` ,
150
151
main
151
152
] . filter ( Boolean ) ;
152
153
Original file line number Diff line number Diff line change @@ -107,7 +107,8 @@ export function create_ssr_component(fn) {
107
107
map : null ;
108
108
code : string ;
109
109
} > ;
110
- } = { title : '' , head : '' , css : new Set ( ) } ;
110
+ renderedComponents : Set < string > ;
111
+ } = { title : '' , head : '' , css : new Set ( ) , renderedComponents : new Set ( ) } ;
111
112
112
113
const html = $$render ( result , props , { } , options ) ;
113
114
@@ -119,7 +120,8 @@ export function create_ssr_component(fn) {
119
120
code : Array . from ( result . css ) . map ( css => css . code ) . join ( '\n' ) ,
120
121
map : null // TODO
121
122
} ,
122
- head : result . title + result . head
123
+ head : result . title + result . head ,
124
+ renderedComponents : Array . from ( result . renderedComponents )
123
125
} ;
124
126
} ,
125
127
You can’t perform that action at this time.
0 commit comments