angular-cn/packages/core/test/bundling
cexbrayat e12d9dec64 fix(core): remove duplicated EMPTY_ARRAY constant (#40991)
The codebase currently contains several `EMPTY_ARRAY` constants,
and they can end up in the bundle of an application.
A recent commit 6fbe219 tipped us off
as it introduced several `noop` occurrences in the golden symbol files.
After investigating with @petebacondarwin,
we decided to remove the duplicated symbols.

This probably shaves only a few bytes,
but this commit removes the duplicated functions,
by always using the one in `core/src/utils/empty`.

PR Close #40991
2021-03-01 09:00:43 -08: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 fix(core): Access injected parent values using SelfSkip (#39464) 2020-11-06 09:23:45 -08:00
forms fix(core): remove duplicated EMPTY_ARRAY constant (#40991) 2021-03-01 09:00:43 -08:00
hello_world fix(core): Access injected parent values using SelfSkip (#39464) 2020-11-06 09:23:45 -08: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(core): use RuntimeError to throw provider not found error (#40901) 2021-02-19 14:38:18 -08:00
router fix(core): remove duplicated EMPTY_ARRAY constant (#40991) 2021-03-01 09:00:43 -08:00
todo fix(core): remove duplicated EMPTY_ARRAY constant (#40991) 2021-03-01 09:00:43 -08:00
todo_i18n fix(compiler-cli): downlevel angular decorators to static properties (#37382) 2020-06-10 09:24:11 -07:00
todo_r2 build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04: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