Something went wrong. Try again.
Monorepo for the nibling.run platform
Something went wrong. Try again.
12345678910111213141516171819202122232425// The ids the kernel resolves as builtins and the runtime registry recognizes.// Kept apart from builtin-names.ts's export-name table (the kernel's facade builder// needs the names; the runtime only ever checks membership) so the runtime bundle// doesn't carry ~18 KB of export-name arrays it never reads.export const BUILTIN_IDS = [ "assert", "assert/strict", "async_hooks", "buffer", "child_process", "cluster", "console", "crypto", "dns", "dns/promises", "dgram", "diagnostics_channel", "events", "fs", "fs/promises", "http", "http2", "inspector", "inspector/promises", "module", "net", "os", "path", "path/win32", "path/posix", "perf_hooks", "https", "process", "readline", "readline/promises", "querystring", "sea", "stream", "stream/consumers", "stream/promises", "stream/web", "string_decoder", "test", "test/reporters", "timers", "timers/promises", "trace_events", "tls", "tty", "url", "v8", "vm", "wasi", "worker_threads", "util", "util/types", "zlib",] as const;
export type BuiltinId = (typeof BUILTIN_IDS)[number];
const BUILTIN_ID_SET: ReadonlySet<string> = new Set(BUILTIN_IDS);
export function isBuiltinId(id: string): id is BuiltinId { return BUILTIN_ID_SET.has(id);}
/** Ids Node resolves only as `node:<id>`: the bare name is a regular (missing) * package, and `module.isBuiltin`/`builtinModules` leave them out. */export const SCHEME_ONLY_BUILTINS: ReadonlySet<string> = new Set<BuiltinId>(["sea", "test", "test/reporters"]);