angular-docs-cn/packages/core/test/bundling
JoostK 96624b71a7 fix(platform-browser): prevent memory leak of style nodes if shadow DOM encapsulation is used (#42005)
Prior to this change, any inserted `<style>` nodes into shadow dom trees would be retained
in memory, even after the shadow dom tree has been removed. This commit fixes the memory
leak by tracking the inserted `<style>` nodes per host element, such that removal of the
host element also releases the style nodes.

Fixes #36655

PR Close #42005
2021-05-10 16:12:19 -04:00
..
animation_world build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
core_all build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
cyclic_import Revert "perf(core): avoid storing LView in __ngContext__ (#41358)" (#41901) 2021-04-30 14:12:52 -07:00
forms_reactive fix(platform-browser): prevent memory leak of style nodes if shadow DOM encapsulation is used (#42005) 2021-05-10 16:12:19 -04:00
forms_template_driven fix(platform-browser): prevent memory leak of style nodes if shadow DOM encapsulation is used (#42005) 2021-05-10 16:12:19 -04:00
hello_world Revert "perf(core): avoid storing LView in __ngContext__ (#41358)" (#41901) 2021-04-30 14:12:52 -07:00
hello_world_i18n build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
hello_world_r2 build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
injection refactor(compiler): move factory out of injector definition (#41022) 2021-03-08 15:31:30 -08:00
router fix(platform-browser): prevent memory leak of style nodes if shadow DOM encapsulation is used (#42005) 2021-05-10 16:12:19 -04:00
todo Revert "perf(core): avoid storing LView in __ngContext__ (#41358)" (#41901) 2021-04-30 14:12:52 -07:00
todo_i18n Revert "perf(core): avoid storing LView in __ngContext__ (#41358)" (#41901) 2021-04-30 14:12:52 -07:00
todo_r2 Revert "perf(core): avoid storing LView in __ngContext__ (#41358)" (#41901) 2021-04-30 14:12:52 -07:00
util build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
README.md docs(core): Update instructions on updating symbol tests (#38707) 2020-09-28 16:15:59 -04:00

README.md

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 commands:

yarn bazel run --config=ivy //packages/core/test/bundling/injection:symbol_test.accept
yarn bazel run --config=ivy //packages/core/test/bundling/cyclic_import:symbol_test.accept
yarn bazel run --config=ivy //packages/core/test/bundling/forms:symbol_test.accept
yarn bazel run --config=ivy //packages/core/test/bundling/hello_world:symbol_test.accept
yarn bazel run --config=ivy //packages/core/test/bundling/router:symbol_test.accept
yarn bazel run --config=ivy //packages/core/test/bundling/todo:symbol_test.accept

Running all symbol tests

To run all symbol tests with one command, you can use the following scripts:

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