mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Previously, the cross entry-point dependency was created to share the `setDomTypes` function. This however, causes extra transformations "linking" during the application build since other Angular code in `@angular/platform-server` is pulled in. With this commit we remove the cross dependency and thus remove the need for extra transformations in the server polyfill bundle with the result of having a slightly faster build. See: https://github.com/angular/angular-cli/pull/26113 PR Close #52342
26 lines
671 B
Text
26 lines
671 B
Text
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
|
load("//tools/circular_dependency_test:index.bzl", "circular_dependency_test")
|
|
|
|
circular_dependency_test(
|
|
name = "circular_deps_test",
|
|
entry_point = "angular/packages/platform-server/init/index.mjs",
|
|
deps = ["//packages/platform-server/init"],
|
|
)
|
|
|
|
ts_library(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(["**/*.ts"]),
|
|
deps = [
|
|
"//packages/platform-server/init",
|
|
"//packages/platform-server/init:bundled_domino_lib",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "test",
|
|
bootstrap = ["//tools/testing:node_no_angular"],
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|