angular/modules/benchmarks/src/expanding_rows
Paul Gschwendtner c8cd5d5f2c build: switch all instances from ng_rollup_bundle to app_bundle (#44490)
The `ng_rollup_bundle` rule has been replaced with a new rule called
`app_bundle`. This rule replicates the Angular v13 optimization
pipeline in the CLI, so that we can get better benchmarking results.
Also the rule is much simpler to maintain as it relies on ESbuild.

The old `ng_rollup_bundle` rule did rely on e.g. build-optimizer that no
longer has an effect on v13 Angular packages, so technically size
tests/symbol tests were no longer as correct as they were before. This
commit fixes that.

A couple of different changes and their explanation:

* Language-service will no longer use the benchmark rule for creating
  its NPM bundles! It will use plain `rollup_bundle`. ESBuild would have
  been nice but the language-service relies on AMD that ESBuild cannot
  generate (yet?)

* Service-worker ngsw-worker.js file was generated using the benchmark
  bundle rule. This is wrong. We will use a simple ESbuild rule in the
  future. The output is more predictable that way, and we can have a
  clear use of the benchmark bundle rule..

* A couple of benchmarks in `modules/` had to be updated to use e.g.
  `initTableUtils` calls. This is done because with the new rule, all
  files except for the entry-point are considered side-effect free. The
  utilities for benchmarks relied on side-effects in some
  transitively-loaded file (bad practice anyway IMO). We are now
  initializing the utilities using a proper init function that is
  exported...

PR Close #44490
2022-01-04 12:14:14 -08:00
..
benchmark.ts build: support building with TypeScript 4.1 (#39571) 2020-11-25 11:10:01 -08:00
benchmark_module.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
benchmarkable_expanding_row.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
benchmarkable_expanding_row_module.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
BUILD.bazel build: switch all instances from ng_rollup_bundle to app_bundle (#44490) 2022-01-04 12:14:14 -08:00
expanding_row.ts build: remove usage of blacklist in benchmark tooling (#38926) 2020-09-28 16:20:39 -04:00
expanding_row_css.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
expanding_row_details_caption.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
expanding_row_details_content.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
expanding_row_host.ts build: remove usage of blacklist in benchmark tooling (#38926) 2020-09-28 16:20:39 -04:00
expanding_row_module.ts build: remove usage of blacklist in benchmark tooling (#38926) 2020-09-28 16:20:39 -04:00
expanding_row_summary.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
expanding_row_toggle_event.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
expanding_row_uncollapsible.ts build: remove usage of blacklist in benchmark tooling (#38926) 2020-09-28 16:20:39 -04:00
expanding_rows.perf-spec.ts build: remove dev-infra directory and migrate to relying on @angular/dev-infra-private-builds (#43061) 2021-08-16 10:44:27 -07:00
index.html build: set default ts_devserver serving_path to /app_bundle.js to match g3 (#33996) 2019-11-26 16:09:32 -08:00
index_aot.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00