UNPKG

hybrids

Version:

A JavaScript framework for creating fully-featured web applications, components libraries, and single web components with unique declarative and functional architecture

11 lines (7 loc) 279 B
import { removeTemplate, getMeta } from "../utils.js"; export default function resolveNode(host, target, value) { removeTemplate(target); const meta = getMeta(target); meta.startNode = meta.endNode = value; target.parentNode.insertBefore(value, target.nextSibling); }