MCPcopy
hub / github.com/vitest-dev/vitest / isNodeBuiltin

Function isNodeBuiltin

packages/vitest/src/utils/modules.ts:27–32  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

25}
26
27export function isNodeBuiltin(id: string): boolean {
28 if (id.startsWith(NODE_BUILTIN_NAMESPACE)) {
29 return true
30 }
31 return nodeBuiltins.includes(id)
32}
33
34const browserExternalId = '__vite-browser-external'
35const browserExternalLength = browserExternalId.length + 1 // 1 is ":"

Callers 1

isBuiltinFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected