angular/packages/core/test/bundling
Angular Robot b7bc11098d build: update cross-repo angular dependencies (#63722)
See associated pull request for more information.

PR Close #63722
2025-09-11 16:32:28 +00:00
..
animations-standalone refactor(core): Split consumerBefore/AfterComputation (#62549) 2025-09-11 15:47:34 +00:00
cyclic_import build: rename defaults2.bzl to defaults.bzl (#63384) 2025-08-25 15:45:46 -07:00
defer refactor(core): Split consumerBefore/AfterComputation (#62549) 2025-09-11 15:47:34 +00:00
forms_reactive refactor(core): Split consumerBefore/AfterComputation (#62549) 2025-09-11 15:47:34 +00:00
forms_template_driven refactor(core): Split consumerBefore/AfterComputation (#62549) 2025-09-11 15:47:34 +00:00
hydration refactor(core): Split consumerBefore/AfterComputation (#62549) 2025-09-11 15:47:34 +00:00
image-directive refactor(core): Update tests for zoneless by default (#63672) 2025-09-09 15:07:24 -07:00
router refactor(core): Split consumerBefore/AfterComputation (#62549) 2025-09-11 15:47:34 +00:00
standalone_bootstrap refactor(core): Split consumerBefore/AfterComputation (#62549) 2025-09-11 15:47:34 +00:00
BUILD.bazel build: update to the latest version of devinfra and rename npm2 workspace (#63093) 2025-08-11 10:35:34 -07:00
package.json build: update cross-repo angular dependencies (#63722) 2025-09-11 16:32:28 +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.