angular/packages/core/test/bundling
Charles Lyding 7b2fda16b1 refactor(platform-browser): reduce runtime code size of shared style host (#57834)
The `SharedStylesHost` class has been refactored to both reduce the runtime
code size and also modernize some of the code structures. The class is also
adjusted to better support reuse via subclassing or other reuses in the future.
Additional comments have been added to improve readability as well.
The code reduction in a prerelease newly generated Angular CLI application
for production is ~410 bytes.

Before:
```
Initial chunk files   | Names         |  Raw size | Estimated transfer size
main-GOQKBZBZ.js      | main          | 208.67 kB |                56.41 kB
polyfills-FFHMD2TL.js | polyfills     |  34.52 kB |                11.28 kB
styles-5INURTSO.css   | styles        |   0 bytes |                 0 bytes

                      | Initial total | 243.19 kB |                67.69 kB
```

After:
```
Initial chunk files   | Names         |  Raw size | Estimated transfer size
main-CRTDDKPH.js      | main          | 208.26 kB |                56.32 kB
polyfills-FFHMD2TL.js | polyfills     |  34.52 kB |                11.28 kB
styles-5INURTSO.css   | styles        |   0 bytes |                 0 bytes

                      | Initial total | 242.78 kB |                67.61 kB
```

PR Close #57834
2024-09-23 14:22:58 +02:00
..
animation_world refactor: migrate core to prettier formatting (#55488) 2024-04-29 09:49:19 -07:00
animations refactor(platform-browser): reduce runtime code size of shared style host (#57834) 2024-09-23 14:22:58 +02:00
animations-standalone refactor(platform-browser): reduce runtime code size of shared style host (#57834) 2024-09-23 14:22:58 +02:00
core_all refactor(core): EventEmitter implements OutputRef. (#54650) 2024-03-06 12:34:39 +01:00
cyclic_import refactor(platform-browser): reduce runtime code size of shared style host (#57834) 2024-09-23 14:22:58 +02:00
defer refactor(platform-browser): reduce runtime code size of shared style host (#57834) 2024-09-23 14:22:58 +02:00
forms_reactive refactor(platform-browser): reduce runtime code size of shared style host (#57834) 2024-09-23 14:22:58 +02:00
forms_template_driven refactor(platform-browser): reduce runtime code size of shared style host (#57834) 2024-09-23 14:22:58 +02:00
hello_world feat(core): migrate ExperimentalPendingTasks to PendingTasks (#57533) 2024-09-20 18:26:48 +02:00
hello_world_i18n refactor: migrate core to prettier formatting (#55488) 2024-04-29 09:49:19 -07:00
hydration refactor(platform-browser): reduce runtime code size of shared style host (#57834) 2024-09-23 14:22:58 +02:00
image-directive refactor: migrate core to prettier formatting (#55488) 2024-04-29 09:49:19 -07:00
injection feat(core): migrate ExperimentalPendingTasks to PendingTasks (#57533) 2024-09-20 18:26:48 +02:00
router refactor(platform-browser): reduce runtime code size of shared style host (#57834) 2024-09-23 14:22:58 +02:00
standalone_bootstrap refactor(platform-browser): reduce runtime code size of shared style host (#57834) 2024-09-23 14:22:58 +02:00
todo refactor(platform-browser): reduce runtime code size of shared style host (#57834) 2024-09-23 14:22:58 +02:00
todo_i18n refactor: migrate core to prettier formatting (#55488) 2024-04-29 09:49:19 -07:00
README.md fix(core): remove individual commands for updating gold files (#45198) 2022-03-01 19:16:53 +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