Skip to content
Browse files

feat(bazel): allow ng_module rules to control whether type checking i…

…s enabled (#21460)

Defaults to true which is different than `ngc` which defaults to false.

PR Close #21460
  • Loading branch information...
chuckjaz authored and alexeagle committed Jan 11, 2018
1 parent 9b5a485 commit cffa0fe734085084760146afe38b2f2be055b11b
Showing with 3 additions and 0 deletions.
  1. +3 −0 packages/bazel/src/ng_module.bzl
@@ -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 = {

"type_check": attr.bool(default = True),

"no_i18n": attr.bool(default = False),

"compiler": attr.label(

0 comments on commit cffa0fe

Please sign in to comment.
You can’t perform that action at this time.