angular/devtools/tools/linking/BUILD.bazel
Paul Gschwendtner 5c575a8ac9 build: ensure material dependencies are properly linked for devtools (#60822)
This is a follow-up to the recent devtools linking change, leveraging
the dedicated package that we are also using in the components
repository; avoiding future duplication.

The latest version of that package contains a fix for an issue where
the linked bundles did not rewrite imports to shared chunks.

Such imports need to also point to their linked variants.

PR Close #60822
2025-04-10 11:53:53 -04:00

20 lines
496 B
Text

load("@build_bazel_rules_nodejs//:index.bzl", "copy_to_bin")
load("//tools:defaults.bzl", "nodejs_binary")
copy_to_bin(
name = "linker_srcs",
srcs = ["index.mjs"],
)
nodejs_binary(
name = "linker_bin",
data = [
":linker_srcs",
"//packages/compiler-cli/linker/babel",
"@npm//@babel/core",
"@npm//@nginfra/angular-linking",
"@npm//tinyglobby",
],
entry_point = ":index.mjs",
visibility = ["//devtools/tools:__subpackages__"],
)