refactor: remove console.log

This commit is contained in:
Ayo 2023-10-20 11:24:40 +02:00
parent 9b6043b219
commit 51143163c8

View file

@ -249,7 +249,6 @@ async function useFragments(html: string) {
function replaceSlots(fragmentNode, node) { function replaceSlots(fragmentNode, node) {
walkSync(fragmentNode, (n) => { walkSync(fragmentNode, (n) => {
if (n.type === ELEMENT_NODE && n.name === "slot") { if (n.type === ELEMENT_NODE && n.name === "slot") {
console.log(n);
const index = n.parent.children.indexOf(n); const index = n.parent.children.indexOf(n);
n.parent.children.splice(index, 1, ...node.children); n.parent.children.splice(index, 1, ...node.children);
} }