angular/packages/bazel/src
Paul Gschwendtner f74bd1b0f5 perf(bazel): reduce input files for ng_package rollup and type bundle actions (#46187)
We currently use all the ESM2020 and type sources as inputs for rollup
and type bundle actions, respectively. This is a source of slowness in
Bazel sandboxed builds because many unused files will be linked/made
available for many concurrently-running actions.

We should limit the inputs only to what is assumed to be used. We cannot
know exactly and need to include transitive types from `node_modules`,
but that is an inevitable construct with the current Bazel rules.

Note that the external node modules could still bring in a lot of files,
like in Material where the `.d.ts` files for all locales are brought
into the sandbox (from `@angular/common`). We likely would need to
remove these files in a postinstall for now, to speed up actions,
similar to how we did it for RxJS in all repositories. These are known
to be not used in the components repo.

PR Close #46187
2022-06-02 13:43:22 -07:00
..
ng_module build: clean up references to old master branch (#45856) 2022-05-04 16:23:33 -07:00
ng_package perf(bazel): reduce input files for ng_package rollup and type bundle actions (#46187) 2022-06-02 13:43:22 -07:00
ngc-wrapped perf(bazel): use allowedInputs to avoid fs.stat (#46069) 2022-05-24 10:39:17 -07:00
types_bundle fix(bazel): speed up d.ts bundling by configuring worker (#45900) 2022-05-05 15:35:14 -07:00
BUILD.bazel feat(bazel): create transition for enabling partial compilation (#43431) 2021-10-01 18:28:42 +00:00
external.bzl build: migrate more usages from @bazel/typescript to @bazel/concatjs (#45431) 2022-03-25 12:18:34 -07:00
ng_perf.bzl refactor(bazel): move ng_module.bzl file into sub-directory for consistent structure (#43431) 2021-10-01 18:28:42 +00:00