mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
68597bb0ca
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
14 lines
290 B
Python
14 lines
290 B
Python
load("//tools:defaults.bzl", "ng_module")
|
|
|
|
package(default_visibility = ["//packages/bazel/test:__subpackages__"])
|
|
|
|
ng_module(
|
|
name = "secondary",
|
|
srcs = glob(["*.ts"]),
|
|
module_name = "example/secondary",
|
|
deps = [
|
|
"//packages/core",
|
|
"@npm//@types",
|
|
],
|
|
)
|