angular/packages/core/test/bundling
arturovt 6bf6dbc37e fix(core): cleanup testability subscriptions (#61261)
This commit prevents leaking memory when the application is destroyed and subscriptions are still alive.

PR Close #61261
2025-05-21 12:06:23 +00:00
..
animations-standalone build: migrate all ng_module in packages/core/test (#61472) 2025-05-20 10:00:43 +00:00
core_all build: migrate all ts_library in packages/core/test (#61472) 2025-05-20 10:00:43 +00:00
cyclic_import build: migrate all ng_module in packages/core/test (#61472) 2025-05-20 10:00:43 +00:00
defer build: migrate all ng_module in packages/core/test (#61472) 2025-05-20 10:00:43 +00:00
forms_reactive fix(core): cleanup testability subscriptions (#61261) 2025-05-21 12:06:23 +00:00
forms_template_driven fix(core): cleanup testability subscriptions (#61261) 2025-05-21 12:06:23 +00:00
hydration build: migrate all ng_module in packages/core/test (#61472) 2025-05-20 10:00:43 +00:00
image-directive build: migrate all ng_module in packages/core/test (#61472) 2025-05-20 10:00:43 +00:00
router refactor(core): Merge R3TemplateRef implementation and TemplateRef interface (#61455) 2025-05-21 10:07:12 +00:00
standalone_bootstrap build: migrate all ng_module in packages/core/test (#61472) 2025-05-20 10:00:43 +00: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