Revision c8cd5d5f2cabe2a49b649b3aac0e7f1c17951766 authored by Paul Gschwendtner on 15 December 2021, 15:22:01 UTC, committed by Dylan Hunn on 04 January 2022, 20:14:14 UTC
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
1 parent 4e58a50
File | Mode | Size |
---|---|---|
.circleci | ||
.devcontainer | ||
.github | ||
.husky | ||
.ng-dev | ||
.vscode | ||
.yarn | ||
aio | ||
docs | ||
goldens | ||
integration | ||
modules | ||
packages | ||
scripts | ||
third_party | ||
tools | ||
.bazelignore | -rw-r--r-- | 2.8 KB |
.bazelrc | -rw-r--r-- | 6.7 KB |
.bazelversion | -rw-r--r-- | 6 bytes |
.clang-format | -rw-r--r-- | 73 bytes |
.editorconfig | -rw-r--r-- | 245 bytes |
.gitattributes | -rw-r--r-- | 240 bytes |
.gitignore | -rw-r--r-- | 797 bytes |
.gitmessage | -rw-r--r-- | 7.2 KB |
.mailmap | -rw-r--r-- | 51 bytes |
.npmrc | -rw-r--r-- | 21 bytes |
.nvmrc | -rw-r--r-- | 8 bytes |
.prettierrc | -rw-r--r-- | 157 bytes |
.pullapprove.yml | -rw-r--r-- | 47.7 KB |
.yarnrc | -rw-r--r-- | 130 bytes |
BUILD.bazel | -rw-r--r-- | 2.0 KB |
CHANGELOG.md | -rw-r--r-- | 971.3 KB |
CODE_OF_CONDUCT.md | -rw-r--r-- | 1.1 KB |
CONTRIBUTING.md | -rw-r--r-- | 15.8 KB |
LICENSE | -rw-r--r-- | 1.1 KB |
README.md | -rw-r--r-- | 4.7 KB |
WORKSPACE | -rw-r--r-- | 2.8 KB |
browser-providers.conf.js | -rw-r--r-- | 1.8 KB |
gulpfile.js | -rw-r--r-- | 631 bytes |
karma-js.conf.js | -rw-r--r-- | 6.0 KB |
package.json | -rw-r--r-- | 8.5 KB |
renovate.json | -rw-r--r-- | 2.5 KB |
test-events.js | -rw-r--r-- | 259 bytes |
tsconfig-tslint.json | -rw-r--r-- | 149 bytes |
tslint.json | -rw-r--r-- | 4.9 KB |
yarn.lock | -rw-r--r-- | 645.0 KB |
yarn.lock.readme.md | -rw-r--r-- | 1.3 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...