mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Since angular@12181b9, zone stability contributes to the PendingTasks. There is now a single source of truth for application stability tracked in PendingTasks. This change makes protractor's whenStable compatible with zoneless. The `Router` and `HttpClient` also contribute to stability using the `PendingTasks` injectable. There will likely be more updates in the future to have more features contribute to stableness in a zoneless compatible way. This update uses PendingTasks for stability by default when ZoneJS is not present or can be enabled with an option when ZoneJS is present (but otherwise ignored with ZoneJS). fixes #68180 |
||
|---|---|---|
| .. | ||
| animations-standalone | ||
| create_component | ||
| cyclic_import | ||
| defer | ||
| forms_reactive | ||
| forms_template_driven | ||
| hydration | ||
| image-directive | ||
| router | ||
| standalone_bootstrap | ||
| BUILD.bazel | ||
| package.json | ||
| README.md | ||
Bundle
js_expected_symbol_test
This folder contains tests which assert that most of the code is tree shaken away. This is asserted by keeping gold files of all symbols which are expected to be retained. When doing renaming it is often necessary to update the gold files; to do so use these scripts:
pnpm run symbol-extractor:check
pnpm run symbol-extractor:update
Debugging
You can inspect the build output of each project by building the :bundles target.
pnpm bazel build //packages/core/test/bundling/standalone_bootstrap:bundles
This output is always unmangled and can be easily used for debugging. Alternatively, you can also serve the output by running:
pnpm bazel run //packages/core/test/bundling/standalone_bootstrap:bundles.serve
If needed, you can also control the Angular CLI optimizations via environment variables that
you can set via the env attribute in BUILD.bazel of each test.