Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): do not retain dynamically compiled components and modules (#…
…42003) The JIT compiler has a mapping from component to the owning NgModule and tracks whether a certain NgModule class has been verified; these maps causes any JIT compiled component and NgModule to be retained even if they are no longer referenced from anywhere else. This commit switches the maps to `WeakMap` to allow garbage collecting any components and NgModules that are no longer referenced elsewhere. Fixes #19997 PR Close #42003
- Loading branch information