diff --git a/packages/bazel/src/ng_module/ng_module.bzl b/packages/bazel/src/ng_module/ng_module.bzl index b268c3503a7..78883293af6 100644 --- a/packages/bazel/src/ng_module/ng_module.bzl +++ b/packages/bazel/src/ng_module/ng_module.bzl @@ -348,6 +348,7 @@ def _ngc_tsconfig(ctx, files, srcs, **kwargs): "enableSummariesForJit": is_legacy_ngc, "enableIvy": is_ivy_enabled(ctx), "fullTemplateTypeCheck": ctx.attr.type_check, + "strictTemplates": ctx.attr.strict_templates, "_extendedTemplateDiagnostics": ctx.attr.experimental_extended_template_diagnostics, "compilationMode": compilation_mode, # In Google3 we still want to use the symbol factory re-exports in order to @@ -367,12 +368,6 @@ def _ngc_tsconfig(ctx, files, srcs, **kwargs): "_useManifestPathsAsModuleName": (not _is_bazel()), } - # Only add `strictTemplates` if it is requested, that way an existing patch in components won't - # be broken by duplicating the key. - # TODO(#42966): Inline this in the above dict once components' patch is removed. - if ctx.attr.strict_templates: - angular_compiler_options["strictTemplates"] = True - if is_perf_requested(ctx): # In Ivy mode, set the `tracePerformance` Angular compiler option to enable performance # metric output.