feat(bazel): allow ng_module rules to control whether type checking is enabled (#21460)
Defaults to true which is different than `ngc` which defaults to false. PR Close #21460
This commit is contained in:
parent
9b5a485243
commit
cffa0fe734
|
@ -74,6 +74,7 @@ def _ngc_tsconfig(ctx, files, srcs, **kwargs):
|
|||
"generateCodeForLibraries": False,
|
||||
"allowEmptyCodegenFiles": True,
|
||||
"enableSummariesForJit": True,
|
||||
"fullTemplateTypeCheck": ctx.attr.type_check,
|
||||
# FIXME: wrong place to de-dupe
|
||||
"expectedOut": depset([o.path for o in expected_outs]).to_list(),
|
||||
"preserveWhitespaces": False,
|
||||
|
@ -262,6 +263,8 @@ NG_MODULE_ATTRIBUTES = {
|
|||
".html",
|
||||
]),
|
||||
|
||||
"type_check": attr.bool(default = True),
|
||||
|
||||
"no_i18n": attr.bool(default = False),
|
||||
|
||||
"compiler": attr.label(
|
||||
|
|
Loading…
Reference in New Issue