angular/packages/core/test/bundling
Matthieu Riegler c2c8b75d7b refactor(core): remove module bootstrap code when using standalone. (#59208)
This commit improves tree shaking in standalone apps.

PR Close #59208
2025-05-01 08:39:34 -07:00
..
animations-standalone refactor(core): remove unused injection props (#59209) 2025-04-15 17:33:02 -04:00
core_all refactor(core): convert scripts within packages/core/test to relative imports (#60227) 2025-03-25 10:58:00 -07:00
cyclic_import refactor(core): remove module bootstrap code when using standalone. (#59208) 2025-05-01 08:39:34 -07:00
defer refactor(core): remove module bootstrap code when using standalone. (#59208) 2025-05-01 08:39:34 -07:00
forms_reactive refactor(core): remove module bootstrap code when using standalone. (#59208) 2025-05-01 08:39:34 -07:00
forms_template_driven refactor(core): remove module bootstrap code when using standalone. (#59208) 2025-05-01 08:39:34 -07:00
hydration refactor(core): remove unused injection props (#59209) 2025-04-15 17:33:02 -04:00
image-directive refactor(core): convert scripts within packages/core/test to relative imports (#60227) 2025-03-25 10:58:00 -07:00
router fix(core): prevent stash listener conflicts (#59635) 2025-04-30 08:53:06 -07:00
standalone_bootstrap refactor(core): remove unused injection props (#59209) 2025-04-15 17:33:02 -04:00
README.md docs: add targets for the bundling debug (#60693) 2025-04-02 11:33:52 +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:

yarn run symbol-extractor:check
yarn run symbol-extractor:update

Debugging

You can inspect the build output of each project by using the bundle.debug target.

yarn bazel build  //packages/core/test/bundling/standalone_bootstrap:bundle.debug

This target mostly tree shakes while keeping the symbols. To have a look at the minimal output (with inlining etc.) use the bundle.debug.min target.

yarn bazel build  //packages/core/test/bundling/standalone_bootstrap:bundle.debug.min