266cc9b162
This commit changes the `PartialComponentLinker` to use the original source of an external template when compiling, if available, to ensure that the source-mapping of the final linked code is accurate. If the linker is given a file-system and logger, then it will attempt to compute the original source of external templates so that the final linked code references the correct template source. PR Close #40237
39 lines
1.0 KiB
Python
39 lines
1.0 KiB
Python
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
ts_library(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob([
|
|
"**/*.ts",
|
|
]),
|
|
deps = [
|
|
"//packages:types",
|
|
"//packages/compiler",
|
|
"//packages/compiler-cli/linker",
|
|
"//packages/compiler-cli/linker/babel",
|
|
"//packages/compiler-cli/src/ngtsc/file_system/testing",
|
|
"//packages/compiler-cli/src/ngtsc/logging/testing",
|
|
"//packages/compiler-cli/src/ngtsc/translator",
|
|
"@npm//@babel/core",
|
|
"@npm//@babel/generator",
|
|
"@npm//@babel/parser",
|
|
"@npm//@babel/template",
|
|
"@npm//@babel/traverse",
|
|
"@npm//@babel/types",
|
|
"@npm//@types/babel__core",
|
|
"@npm//@types/babel__generator",
|
|
"@npm//@types/babel__template",
|
|
"@npm//@types/babel__traverse",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "test",
|
|
bootstrap = ["//tools/testing:node_no_angular_es5"],
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|