diff --git a/packages/runtime-vapor/src/index.ts b/packages/runtime-vapor/src/index.ts index a46041a60..8553412a3 100644 --- a/packages/runtime-vapor/src/index.ts +++ b/packages/runtime-vapor/src/index.ts @@ -1,8 +1,3 @@ -export { template } from './template' -export * from './render' export * from './on' - -type Children = Record -export function children(n: ChildNode): Children { - return { ...Array.from(n.childNodes).map(n => [n, children(n)]) } -} +export * from './render' +export * from './template' diff --git a/packages/runtime-vapor/src/render.ts b/packages/runtime-vapor/src/render.ts index 07208d601..aad51f3ab 100644 --- a/packages/runtime-vapor/src/render.ts +++ b/packages/runtime-vapor/src/render.ts @@ -112,3 +112,8 @@ export function setDynamicProp(el: Element, key: string, val: any) { setAttr(el, key, void 0, val) } } + +type Children = Record +export function children(n: ChildNode): Children { + return { ...Array.from(n.childNodes).map(n => [n, children(n)]) } +}