Skip to content

Commit b08d3b2

Browse files
committed
Update linker.zig
1 parent 1e810d2 commit b08d3b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/linker.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,13 +262,13 @@ pub const Linker = struct {
262262
if (import_record.path.text.len > 5 and strings.eqlComptime(import_record.path.text[0.."node:".len], "node:")) {
263263
const is_fs = strings.eqlComptime(import_record.path.text[5..], "fs");
264264
const is_path = strings.eqlComptime(import_record.path.text[5..], "path");
265-
if (is_path) {
265+
if (is_fs) {
266266
import_record.path.text = "node:fs";
267267
externals.append(record_index) catch unreachable;
268268
continue;
269269
}
270270

271-
if (is_fs) {
271+
if (is_path) {
272272
import_record.path.text = "node:path";
273273
externals.append(record_index) catch unreachable;
274274
continue;

0 commit comments

Comments
 (0)