Skip to content

Commit 2d8e2f9

Browse files
author
Dominus Vilicus
authored
add registeredComponents to result
1 parent 023b4ca commit 2d8e2f9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/runtime/internal/ssr.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ export function create_ssr_component(fn) {
107107
map: null;
108108
code: string;
109109
}>;
110-
} = { title: '', head: '', css: new Set() };
110+
registeredComponents: Set<string>;
111+
} = { title: '', head: '', css: new Set(), registeredComponents: new Set() };
111112

112113
const html = $$render(result, props, {}, options);
113114

@@ -119,7 +120,8 @@ export function create_ssr_component(fn) {
119120
code: Array.from(result.css).map(css => css.code).join('\n'),
120121
map: null // TODO
121122
},
122-
head: result.title + result.head
123+
head: result.title + result.head,
124+
registeredComponents: result.registeredComponents
123125
};
124126
},
125127

@@ -134,4 +136,4 @@ export function add_attribute(name, value, boolean) {
134136

135137
export function add_classes(classes) {
136138
return classes ? ` class="${classes}"` : ``;
137-
}
139+
}

0 commit comments

Comments
 (0)