diff options
author | 2023-04-16 23:42:45 -0700 | |
---|---|---|
committer | 2023-04-16 23:42:45 -0700 | |
commit | a2d5e7c570aca3c2e14a991617282da93bfa30f9 (patch) | |
tree | c828980e8c856ef5c54828000b52c68e04178b64 | |
parent | af0a4c563899c0012e541c6d539f2373a576c78c (diff) | |
download | bun-a2d5e7c570aca3c2e14a991617282da93bfa30f9.tar.gz bun-a2d5e7c570aca3c2e14a991617282da93bfa30f9.tar.zst bun-a2d5e7c570aca3c2e14a991617282da93bfa30f9.zip |
Update bundle_v2.zig
-rw-r--r-- | src/bundler/bundle_v2.zig | 34 |
1 files changed, 10 insertions, 24 deletions
diff --git a/src/bundler/bundle_v2.zig b/src/bundler/bundle_v2.zig index 8e98037d5..1b678610d 100644 --- a/src/bundler/bundle_v2.zig +++ b/src/bundler/bundle_v2.zig @@ -7151,30 +7151,16 @@ const LinkerContext = struct { }, ) catch unreachable; } else { - if (!strings.eql(symbol.original_name, named_import.alias.?)) { - c.log.addRangeErrorFmt( - source, - r, - c.allocator, - "No matching export \"{s}\" in \"{s}\" for import \"{s}\"", - .{ - symbol.original_name, - next_source.path.pretty, - named_import.alias.?, - }, - ) catch unreachable; - } else { - c.log.addRangeErrorFmt( - source, - r, - c.allocator, - "No matching export in \"{s}\" for import \"{s}\"", - .{ - next_source.path.pretty, - named_import.alias.?, - }, - ) catch unreachable; - } + c.log.addRangeErrorFmt( + source, + r, + c.allocator, + "No matching export in \"{s}\" for import \"{s}\"", + .{ + next_source.path.pretty, + named_import.alias.?, + }, + ) catch unreachable; } }, .probably_typescript_type => { |