Skip to content

Commit

Permalink
perf: do not include sources,types when transitive_sources,type alrea…
Browse files Browse the repository at this point in the history
…dy included (#1803)
  • Loading branch information
jbedard authored Jun 19, 2024
1 parent 98081d0 commit 3589e16
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions js/private/js_helpers.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -275,14 +275,17 @@ def gather_files_from_js_infos(
for target in targets:
if JsInfo in target:
js_info = target[JsInfo]
if include_sources:
files_depsets.append(js_info.sources)
if include_types:
files_depsets.append(js_info.types)

if include_transitive_sources:
files_depsets.append(js_info.transitive_sources)
elif include_sources:
files_depsets.append(js_info.sources)

if include_transitive_types:
files_depsets.append(js_info.transitive_types)
elif include_types:
files_depsets.append(js_info.types)

if include_npm_sources:
files_depsets.append(js_info.npm_sources)

Expand Down

0 comments on commit 3589e16

Please sign in to comment.