mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Speeds up the dev-turnaround by only bundling types when packaging. Currently bundling occurs for all the `ng_module` targets in devmode. This has various positive benefits: * Avoidance of this rather slower operation in development * Makes APF-built packages also handle types for `ts_library` targets consistently. * Allows us to ensure APF entry-points have `d.ts` _always_ bundled (working with ESM module resolution in TypeScript -- currently experimental) * Allows us to remove the secondary `package.json` files from APF (maybe APF v14? - seems low-impact). This would clean-up the APF even more and fix resolution issues (like in Vite) PR Close #45405
21 lines
435 B
Text
21 lines
435 B
Text
load("//tools:defaults.bzl", "ng_module")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
exports_files(["package.json"])
|
|
|
|
ng_module(
|
|
name = "testing",
|
|
srcs = glob(
|
|
["**/*.ts"],
|
|
exclude = ["testing.ts"],
|
|
),
|
|
deps = [
|
|
"//packages:types",
|
|
"//packages/compiler",
|
|
"//packages/core",
|
|
"@npm//@types/node",
|
|
"@npm//base64-js",
|
|
"@npm//source-map",
|
|
],
|
|
)
|