diff options
author | 2022-04-10 05:02:14 -0700 | |
---|---|---|
committer | 2022-04-10 05:02:14 -0700 | |
commit | b08d3b2cd6d3d946b936839c27418566cf8b2f15 (patch) | |
tree | bb6c0e7af3c7982a03d6459f46ef7a3fbfc65bf8 | |
parent | 1e810d229e954353cc2e76d650b5c3cc81e19e47 (diff) | |
download | bun-b08d3b2cd6d3d946b936839c27418566cf8b2f15.tar.gz bun-b08d3b2cd6d3d946b936839c27418566cf8b2f15.tar.zst bun-b08d3b2cd6d3d946b936839c27418566cf8b2f15.zip |
Update linker.zig
-rw-r--r-- | src/linker.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linker.zig b/src/linker.zig index e7a0b0191..000460e25 100644 --- a/src/linker.zig +++ b/src/linker.zig @@ -262,13 +262,13 @@ pub const Linker = struct { if (import_record.path.text.len > 5 and strings.eqlComptime(import_record.path.text[0.."node:".len], "node:")) { const is_fs = strings.eqlComptime(import_record.path.text[5..], "fs"); const is_path = strings.eqlComptime(import_record.path.text[5..], "path"); - if (is_path) { + if (is_fs) { import_record.path.text = "node:fs"; externals.append(record_index) catch unreachable; continue; } - if (is_fs) { + if (is_path) { import_record.path.text = "node:path"; externals.append(record_index) catch unreachable; continue; |