Skip to content

Commit be27e21

Browse files
Process slots before processing subtree
1 parent d5c2cbd commit be27e21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,14 +229,14 @@ function processTree(options) {
229229
return currentNode.content || nextNode.content;
230230
});
231231

232+
// Process <slot> tags
233+
processSlotContent(nextNode, filledSlots, options);
234+
232235
nextNode = processTree(options)(nextNode, messages);
233236

234237
// Process <fill> tags
235238
processFillContent(nextNode, filledSlots, options);
236239

237-
// Process <slot> tags
238-
processSlotContent(nextNode, filledSlots, options);
239-
240240
// Remove component tag and replace content with <yield>
241241
currentNode.tag = false;
242242
currentNode.content = content;

0 commit comments

Comments
 (0)