Parse Angular compiler options in Angular language service. In View Engine, only TypeScript compiler options are read, Angular compiler options are not. With Ivy, there could be different modes of compilation, most notably how strict the templates should be checked. This commit makes the behavior of language service consistent with the Ivy compiler. PR Close #36922
30 lines
848 B
Python
30 lines
848 B
Python
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
|
|
|
ts_library(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(["*.ts"]),
|
|
deps = [
|
|
"//packages/language-service/ivy",
|
|
"@npm//typescript",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "test",
|
|
data = [
|
|
# Note that we used to depend on the npm_package of common, core, and
|
|
# forms, but this is no longer the case. We did it for View Engine
|
|
# because we wanted to load the flat dts, which is only available in the
|
|
# npm_package. Ivy does not currently produce flat dts, so we might
|
|
# as well just depend on the outputs of ng_module.
|
|
"//packages/common",
|
|
"//packages/core",
|
|
"//packages/forms",
|
|
"//packages/language-service/test:project",
|
|
],
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|