Skip to content

Commit

Permalink
(Bug): When src is not local, basename is not fully describing the fi…
Browse files Browse the repository at this point in the history
…le name
  • Loading branch information
pat-trunk-io committed Feb 16, 2024
1 parent cbb6b2f commit 38764a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swc/private/swc.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def _calculate_map_outs(srcs, source_maps, out_dir = None, root_dir = None):

def _calculate_source_file(ctx, src):
if not (ctx.attr.out_dir or ctx.attr.root_dir):
return src.basename
return src.short_path

src_pkg = src.dirname[len(ctx.label.package) + 1:] if ctx.label.package else ""
s = ""
Expand Down

0 comments on commit 38764a7

Please sign in to comment.