refactor: remove console.log
This commit is contained in:
parent
9b6043b219
commit
51143163c8
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue