diff options
| author | 2022-04-10 04:30:09 -0700 | |
|---|---|---|
| committer | 2022-04-10 04:30:09 -0700 | |
| commit | ac76e3b004c86255daf79410827fad69c5b60a96 (patch) | |
| tree | 3300ac28c525632bf4cea7eed75492a83132f03a /src | |
| parent | 43b18663fdc763c24ae8fa0940019f2aee37c6aa (diff) | |
| download | bun-ac76e3b004c86255daf79410827fad69c5b60a96.tar.gz bun-ac76e3b004c86255daf79410827fad69c5b60a96.tar.zst bun-ac76e3b004c86255daf79410827fad69c5b60a96.zip | |
Move some types around
Diffstat (limited to 'src')
| -rw-r--r-- | src/linker.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/linker.zig b/src/linker.zig index 7bc682a17..d13a61a88 100644 --- a/src/linker.zig +++ b/src/linker.zig @@ -265,6 +265,11 @@ pub const Linker = struct { continue; } + if (strings.eqlComptime(import_record.path.text, "bun")) { + import_record.tag = .bun; + continue; + } + if (strings.eqlComptime(import_record.path.text, "path") or strings.eqlComptime(import_record.path.text, "node:path")) { import_record.path.text = "node:path"; externals.append(record_index) catch unreachable; @@ -287,6 +292,7 @@ pub const Linker = struct { "vitest", )) { import_record.path.namespace = "bun"; + import_record.tag = .bun_test; import_record.path.text = "test"; continue; } |
