diff options
Diffstat (limited to 'src/linker.zig')
-rw-r--r-- | src/linker.zig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/linker.zig b/src/linker.zig index 04604522a..b108ccce7 100644 --- a/src/linker.zig +++ b/src/linker.zig @@ -258,6 +258,13 @@ pub const Linker = struct { if (linker.options.platform.isBun()) { if (strings.eqlComptime(import_record.path.text, "fs") or strings.eqlComptime(import_record.path.text, "node:fs")) { + import_record.path.text = "node:fs"; + externals.append(record_index) catch unreachable; + 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; continue; } |