File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
packages/core/src/render3/deps_tracker Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,13 @@ import {
3131 * An implementation of DepsTrackerApi which will be used for JIT and local compilation.
3232 */
3333class DepsTracker implements DepsTrackerApi {
34- private ownerNgModule = new Map < ComponentType < any > , NgModuleType < any > > ( ) ;
34+ private ownerNgModule = new WeakMap < ComponentType < any > , NgModuleType < any > > ( ) ;
3535 private ngModulesWithSomeUnresolvedDecls = new Set < NgModuleType < any > > ( ) ;
36- private ngModulesScopeCache = new Map < NgModuleType < any > , NgModuleScope > ( ) ;
37- private standaloneComponentsScopeCache = new Map < ComponentType < any > , StandaloneComponentScope > ( ) ;
36+ private ngModulesScopeCache = new WeakMap < NgModuleType < any > , NgModuleScope > ( ) ;
37+ private standaloneComponentsScopeCache = new WeakMap <
38+ ComponentType < any > ,
39+ StandaloneComponentScope
40+ > ( ) ;
3841
3942 /**
4043 * Attempts to resolve ng module's forward ref declarations as much as possible and add them to
You can’t perform that action at this time.
0 commit comments