mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Rename LinkerMap to Aliases to be less confusing
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user