mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(module-loader): fix tests, don't purge loaded module promise from the map
fix tests, don't purge loaded module promise from the map
This commit is contained in:
@@ -36,11 +36,8 @@ export class ModuleLoader {
|
||||
}
|
||||
|
||||
return promise.then(loadedModule => {
|
||||
// clear it from the cache
|
||||
this._promiseMap.delete(modulePath);
|
||||
console.timeEnd(`ModuleLoader, load: ${modulePath}'`);
|
||||
const ref = loadedModule.create(this._injector);
|
||||
|
||||
const component = ref.injector.get(LAZY_LOADED_TOKEN);
|
||||
|
||||
this._cfrMap.set(component, ref.componentFactoryResolver);
|
||||
|
||||
Reference in New Issue
Block a user