Skip to content

Commit 75e1dea

Browse files
committed
add to legacy wrapper
1 parent c723222 commit 75e1dea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/svelte/src/legacy/legacy-server.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ export { createClassComponent };
2121
*/
2222
export function asClassComponent(component) {
2323
const component_constructor = as_class_component(component);
24-
/** @type {(props?: {}, opts?: { $$slots?: {}; context?: Map<any, any>; }) => { html: any; css: { code: string; map: any; }; head: string; } } */
24+
/** @type {(props?: {}, opts?: { $$slots?: {}; context?: Map<any, any>; }) => { html: any; css: { code: string; map: any; }; head: string; htmlAttributes: string } } */
2525
const _render = (props, { context } = {}) => {
2626
// @ts-expect-error the typings are off, but this will work if the component is compiled in SSR mode
2727
const result = render(component, { props, context });
2828
return {
2929
css: { code: '', map: null },
3030
head: result.head,
31-
html: result.body
31+
html: result.body,
32+
htmlAttributes: result.htmlAttributes
3233
};
3334
};
3435
// @ts-expect-error this is present for SSR

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy