mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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
20 lines
496 B
Text
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__"],
|
|
)
|