MCPcopy
hub / github.com/vitejs/vite / nodeIsElement

Function nodeIsElement

packages/vite/src/node/plugins/html.ts:177–181  ·  view source on GitHub ↗
(
  node: DefaultTreeAdapterMap['node'],
)

Source from the content-addressed store, hash-verified

175> = new WeakMap()
176
177export function nodeIsElement(
178 node: DefaultTreeAdapterMap['node'],
179): node is DefaultTreeAdapterMap['element'] {
180 return node.nodeName[0] !== '#'
181}
182
183function traverseNodes(
184 node: DefaultTreeAdapterMap['node'],

Callers 4

devHtmlHookFunction · 0.90
traverseNodesFunction · 0.85
handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected