angular/packages/core/test/bundling
Jessica Janiuk 857675fedb refactor(core): this delays removal of stylesheets when the element registry is present (#62943)
When animate.leave is used, stylesheet pruning causes issues. Stylesheets with the appropriate animations get pruned before the animations can run. This will delay the removal in the case that the registry is present.

fixes: #62942

PR Close #62943
2025-08-01 12:54:22 +00:00
..
animations-standalone refactor(core): this delays removal of stylesheets when the element registry is present (#62943) 2025-08-01 12:54:22 +00:00
cyclic_import build: remove ts_project_interop infrastructure (#62908) 2025-07-31 09:12:58 +00:00
defer refactor(core): this delays removal of stylesheets when the element registry is present (#62943) 2025-08-01 12:54:22 +00:00
forms_reactive refactor(core): this delays removal of stylesheets when the element registry is present (#62943) 2025-08-01 12:54:22 +00:00
forms_template_driven refactor(core): this delays removal of stylesheets when the element registry is present (#62943) 2025-08-01 12:54:22 +00:00
hydration refactor(core): this delays removal of stylesheets when the element registry is present (#62943) 2025-08-01 12:54:22 +00:00
image-directive build: use pnpm as the package manager instead of yarn (#62924) 2025-07-31 22:06:27 +00:00
router refactor(core): this delays removal of stylesheets when the element registry is present (#62943) 2025-08-01 12:54:22 +00:00
standalone_bootstrap refactor(core): this delays removal of stylesheets when the element registry is present (#62943) 2025-08-01 12:54:22 +00:00
BUILD.bazel build: adjust bundling tests to use Angular CLI (#61566) 2025-05-29 14:39:11 -04:00
package.json build: update cross-repo angular dependencies (#62902) 2025-07-31 09:52:50 +00:00
README.md build: use pnpm as the package manager instead of yarn (#62924) 2025-07-31 22:06:27 +00:00

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.