mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
51765fd778
The terser update included various changes, including changes to the inline optimizations. Constants like for the bloom filter are no longer inlined multiple times, but instead the constant is preserved and used with a shortened/mangled name. Note this also applies to other symbols like `SimpleChanges` too. This means that such new variables now show up in the symbols goldens. Concrete examples of inlined & no-longer inlined constants can be seen in the PR description: https://github.com/angular/angular/pull/49000#issue-1576416106 PR Close #49000
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