Internal change.
PiperOrigin-RevId: 261722053
diff --git a/internal/common/tsconfig.bzl b/internal/common/tsconfig.bzl
index 0fe8254..4c4427d 100644
--- a/internal/common/tsconfig.bzl
+++ b/internal/common/tsconfig.bzl
@@ -17,6 +17,7 @@
load(":common/module_mappings.bzl", "get_module_mappings")
+
_DEBUG = False
def create_tsconfig(
@@ -161,6 +162,7 @@
if hasattr(ctx.attr, "compile_angular_templates") and ctx.attr.compile_angular_templates:
bazel_options["compileAngularTemplates"] = True
+
if disable_strict_deps:
bazel_options["disableStrictDeps"] = disable_strict_deps
bazel_options["allowedStrictDeps"] = []
diff --git a/internal/tsc_wrapped/tsc_wrapped.ts b/internal/tsc_wrapped/tsc_wrapped.ts
index ad7c379..280d733 100644
--- a/internal/tsc_wrapped/tsc_wrapped.ts
+++ b/internal/tsc_wrapped/tsc_wrapped.ts
@@ -332,6 +332,7 @@
compilerHost.inputFiles, options, compilerHost, oldProgram));
cache.putProgram(bazelOpts.target, program);
+
if (!bazelOpts.isJsTranspilation) {
// If there are any TypeScript type errors abort now, so the error
// messages refer to the original source. After any subsequent passes
diff --git a/internal/tsc_wrapped/tsconfig.ts b/internal/tsc_wrapped/tsconfig.ts
index 9c2980f..9bc0a33 100644
--- a/internal/tsc_wrapped/tsconfig.ts
+++ b/internal/tsc_wrapped/tsconfig.ts
@@ -18,6 +18,7 @@
import * as path from 'path';
import * as ts from 'typescript';
+
/**
* The configuration block provided by the tsconfig "bazelOptions".
* Note that all paths here are relative to the rootDir, not absolute nor
@@ -182,6 +183,7 @@
*/
compileAngularTemplates?: boolean;
+
/**
* Override for ECMAScript target language level to use for devmode.
*