Skip to content

Commit

Permalink
fix(plugin-component): wrong slot search in server side
Browse files Browse the repository at this point in the history
  • Loading branch information
BearToCode committed Aug 9, 2024
1 parent 508dab8 commit 39a2f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-component/src/lib/svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const svelteCustom = <T extends Record<string, unknown>>(
visit(bodyElem, (node, index, parent) => {
if (
node.type === 'element' &&
node.tagName === 'div' &&
node.tagName === 'template' &&
node.properties['dataSlot'] === ''
) {
slot = {
Expand Down

0 comments on commit 39a2f7c

Please sign in to comment.