aboutsummaryrefslogtreecommitdiff
path: root/src/js/out/ResolvedSourceTag.zig
blob: cf115736c12bea07bc53c6bdad1abedb7a2b9d3a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// zig fmt: off
pub const ResolvedSourceTag = enum(u32) {
    // Predefined
    javascript = 0,
    package_json_type_module = 1,
    wasm = 2,
    object = 3,
    file = 4,
    esm = 5,
    json_for_object_loader = 6,

    // Built in modules are loaded through InternalModuleRegistry by numerical ID.
    // In this enum are represented as `(1 << 9) & id`
    @"bun:ffi" = 512,
    @"bun:sqlite" = 513,
    @"internal:debugger" = 514,
    @"internal:fs/cp-sync" = 515,
    @"internal:fs/cp" = 516,
    @"internal:primordials" = 517,
    @"internal:shared" = 518,
    @"internal:util/inspect" = 519,
    @"node:assert" = 520,
    @"node:assert/strict" = 521,
    @"node:async_hooks" = 522,
    @"node:child_process" = 523,
    @"node:cluster" = 524,
    @"node:console" = 525,
    @"node:crypto" = 526,
    @"node:dgram" = 527,
    @"node:diagnostics_channel" = 528,
    @"node:dns" = 529,
    @"node:dns/promises" = 530,
    @"node:domain" = 531,
    @"node:events" = 532,
    @"node:fs" = 533,
    @"node:fs/promises" = 534,
    @"node:http" = 535,
    @"node:http2" = 536,
    @"node:https" = 537,
    @"node:inspector" = 538,
    @"node:net" = 539,
    @"node:os" = 540,
    @"node:path/posix" = 541,
    @"node:path" = 542,
    @"node:path/win32" = 543,
    @"node:perf_hooks" = 544,
    @"node:punycode" = 545,
    @"node:querystring" = 546,
    @"node:readline" = 547,
    @"node:readline/promises" = 548,
    @"node:repl" = 549,
    @"node:stream/consumers" = 550,
    @"node:stream" = 551,
    @"node:stream/promises" = 552,
    @"node:stream/web" = 553,
    @"node:timers" = 554,
    @"node:timers/promises" = 555,
    @"node:tls" = 556,
    @"node:trace_events" = 557,
    @"node:tty" = 558,
    @"node:url" = 559,
    @"node:util" = 560,
    @"node:v8" = 561,
    @"node:vm" = 562,
    @"node:wasi" = 563,
    @"node:worker_threads" = 564,
    @"node:zlib" = 565,
    @"depd" = 566,
    @"detect-libc" = 567,
    @"detect-libc/linux" = 568,
    @"isomorphic-fetch" = 569,
    @"node-fetch" = 570,
    @"undici" = 571,
    @"vercel_fetch" = 572,
    @"ws" = 573,
    // Native modules run through a different system using ESM registry.
    @"bun" = 1024,
    @"bun:jsc" = 1025,
    @"node:buffer" = 1026,
    @"node:constants" = 1027,
    @"node:module" = 1028,
    @"node:process" = 1029,
    @"node:string_decoder" = 1030,
    @"node:util/types" = 1031,
    @"utf-8-validate" = 1032,
};