Skip to content

Commit 39a2f7c

Browse files
committed
fix(plugin-component): wrong slot search in server side
1 parent 508dab8 commit 39a2f7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/plugin-component/src/lib/svelte.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const svelteCustom = <T extends Record<string, unknown>>(
6767
visit(bodyElem, (node, index, parent) => {
6868
if (
6969
node.type === 'element' &&
70-
node.tagName === 'div' &&
70+
node.tagName === 'template' &&
7171
node.properties['dataSlot'] === ''
7272
) {
7373
slot = {

0 commit comments

Comments
 (0)