Skip to content

Commit 9ac0534

Browse files
committed
fix(builtin): legacy module_mappings_runtime_aspect handles dep with module_name but no module_root
1 parent 4419f95 commit 9ac0534

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/common/module_mappings.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def get_module_mappings(label, attrs, srcs = [], workspace_name = None, mappings
8080
mr = "%s/%s" % (workspace_name, mr)
8181
elif label.workspace_root:
8282
mr = "%s/%s" % (label.workspace_root, mr)
83-
if attrs.module_root and attrs.module_root != ".":
83+
if hasattr(attrs, "module_root") and attrs.module_root and attrs.module_root != ".":
8484
if attrs.module_root.endswith(".ts"):
8585
if workspace_name:
8686
# workspace_name is set only when doing module mapping for runtime.

0 commit comments

Comments
 (0)