Rename LinkerMap to Aliases to be less confusing

This commit is contained in:
Jarred Sumner
2022-09-06 07:23:05 -07:00
parent 7a5cfc4bae
commit c2f59e72d6

View File

@@ -265,7 +265,7 @@ pub const Linker = struct {
}
if (comptime is_bun) {
if (JSC.HardcodedModule.LinkerMap.get(import_record.path.text)) |replacement| {
if (JSC.HardcodedModule.Aliases.get(import_record.path.text)) |replacement| {
import_record.path.text = replacement;
import_record.tag = if (strings.eqlComptime(replacement, "bun")) ImportRecord.Tag.bun else .hardcoded;
externals.append(record_index) catch unreachable;