diff options
author | 2023-04-30 22:34:23 -0700 | |
---|---|---|
committer | 2023-04-30 22:34:23 -0700 | |
commit | f8b0730231b61a9d5366aa7c4b002c41084a3adb (patch) | |
tree | d887871411e877c0e7b834ae4bc5527d12001925 | |
parent | fe14b7244d48dbc5f7f50c91771a13009ce53f60 (diff) | |
download | bun-f8b0730231b61a9d5366aa7c4b002c41084a3adb.tar.gz bun-f8b0730231b61a9d5366aa7c4b002c41084a3adb.tar.zst bun-f8b0730231b61a9d5366aa7c4b002c41084a3adb.zip |
Fix missing imports in DCE tests
-rw-r--r-- | src/bundler/bundle_v2.zig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bundler/bundle_v2.zig b/src/bundler/bundle_v2.zig index 661aafd9d..10057ee1e 100644 --- a/src/bundler/bundle_v2.zig +++ b/src/bundler/bundle_v2.zig @@ -4376,12 +4376,12 @@ const LinkerContext = struct { // file containing the import and the file containing the imported symbol part.dependencies.appendSliceAssumeCapacity(import.re_exports.slice()); } - - // Merge these symbols so they will share the same name - const merged = this.graph.symbols.merge(ref, import.data.import_ref); - import_ref.* = merged; - needs_reindex = needs_reindex or !merged.eql(ref); } + + // Merge these symbols so they will share the same name + const merged = this.graph.symbols.merge(import.data.import_ref, ref); + import_ref.* = merged; + needs_reindex = needs_reindex or !merged.eql(ref); } if (needs_reindex) |