Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 0f22504

Browse files
TypeScript Teamalexeagle
authored andcommitted
Avoid depset union operators
Depset operators `+`, `+=`, `|` and the depset.union() method are deprecated. They were error-prone and led to build performance problems. Instead, creating a new depset should be done with the depset constructor. Also, the 'items' argument of depset is deprecated. PiperOrigin-RevId: 282628656
1 parent dbdcb1c commit 0f22504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/common/compilation.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def compile_ts(
302302
input_declarations = depset(src_declarations, transitive = [dep_declarations.transitive])
303303
type_blacklisted_declarations = dep_declarations.type_blacklisted
304304
if not is_library and not _should_generate_externs(ctx):
305-
type_blacklisted_declarations += srcs_files
305+
type_blacklisted_declarations = depset(srcs_files, transitive = [type_blacklisted_declarations])
306306

307307
# The depsets of output files. These are the files that are always built
308308
# (including e.g. if you "blaze build :the_target" directly).

0 commit comments

Comments
 (0)