e382632473
We recently reworked our `ng_rollup_bundle` rule to no longer output ESM5 and to optimize applications properly (previously applications were not optimized properly due to incorrect build optimizer setup). This change meant that a lot of symbols have been removed from the golden correctly. See: fd65958b887f6ea8dd5235e6de1d533e4c578602 Unfortunately though, a few symbols have been accidentally removed because they are now part of the bundle as ES2015 classes which the symbol extractor does not pick up. This commit fixes the symbol extractor to capture ES2015 classes. We also update the golden to reflect this change. PR Close #38093
44 lines
898 B
Python
44 lines
898 B
Python
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
ts_library(
|
|
name = "lib",
|
|
testonly = True,
|
|
srcs = glob(
|
|
["**/*.ts"],
|
|
exclude = [
|
|
"**/*_spec.ts",
|
|
"**/*_spec",
|
|
],
|
|
),
|
|
deps = [
|
|
"//packages:types",
|
|
"@npm//typescript",
|
|
],
|
|
)
|
|
|
|
ts_library(
|
|
name = "test_lib",
|
|
testonly = 1,
|
|
srcs = glob(
|
|
["**/*_spec.ts"],
|
|
exclude = ["symbol_extractor_spec/**"],
|
|
),
|
|
deps = [
|
|
":lib",
|
|
"//packages:types",
|
|
"@npm//typescript",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "test",
|
|
data = glob(["symbol_extractor_spec/**"]),
|
|
deps = [
|
|
":test_lib",
|
|
"//tools/symbol-extractor/symbol_extractor_spec:es2015_class_output",
|
|
"//tools/symbol-extractor/symbol_extractor_spec:fixtures",
|
|
],
|
|
)
|