angular/devtools/tools/angular-optimization/BUILD.bazel
Joey Perrott 5eeb9f3e7e build: move all rule/macro loading into devtools/defaults.bzl (#62627)
Move all of our loading into a local defaults.bzl file instead of mixed loading via tools/defaults and devtolls/defaults

PR Close #62627
2025-07-14 15:47:05 -07:00

25 lines
720 B
Text

load("//devtools/tools:defaults.bzl", "copy_to_bin", "js_library")
package(default_visibility = ["//visibility:public"])
# Exposed `js_library` targets need to copy files to `bazel-out`. More details here:
# https://github.com/bazelbuild/rules_nodejs/pull/3083.
copy_to_bin(
name = "js_lib_files",
srcs = [
"ensure-no-linker-decl.mjs",
"esbuild-plugin.d.ts",
"esbuild-plugin.mjs",
],
)
js_library(
name = "js_lib",
srcs = [":js_lib_files"],
deps = [
"//:node_modules/@angular/build",
"//:node_modules/@babel/core",
"//:node_modules/@babel/plugin-transform-async-generator-functions",
"//packages/compiler-cli:compiler-cli_rjs",
],
)