Skip to content

Commit

Permalink
fix(builtin): legacy module_mappings_runtime_aspect handles dep with …
Browse files Browse the repository at this point in the history
…module_name but no module_root
  • Loading branch information
gregmagolan committed Jan 14, 2020
1 parent 4419f95 commit 9ac0534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/common/module_mappings.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def get_module_mappings(label, attrs, srcs = [], workspace_name = None, mappings
mr = "%s/%s" % (workspace_name, mr)
elif label.workspace_root:
mr = "%s/%s" % (label.workspace_root, mr)
if attrs.module_root and attrs.module_root != ".":
if hasattr(attrs, "module_root") and attrs.module_root and attrs.module_root != ".":
if attrs.module_root.endswith(".ts"):
if workspace_name:
# workspace_name is set only when doing module mapping for runtime.
Expand Down

0 comments on commit 9ac0534

Please sign in to comment.