Skip to content

Commit

Permalink
fix handleExistingModule return type
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Jan 23, 2022
1 parent b44b46b commit a9dc596
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/ModuleLoader.ts
Expand Up @@ -549,12 +549,14 @@ export class ModuleLoader {
};
}

private async handleExistingModule(module: Module, isEntry: boolean, isPreload: PreloadType) {
private async handleExistingModule(
module: Module,
isEntry: boolean,
isPreload: PreloadType
): Promise<void> {
const loadPromise = this.moduleLoadPromises.get(module)!;
if (isPreload) {
return isPreload === RESOLVE_DEPENDENCIES
? waitForDependencyResolution(loadPromise)
: loadPromise;
isPreload === RESOLVE_DEPENDENCIES ? waitForDependencyResolution(loadPromise) : loadPromise;
}
if (isEntry) {
module.info.isEntry = true;
Expand All @@ -564,7 +566,7 @@ export class ModuleLoader {
}
module.implicitlyLoadedAfter.clear();
}
return this.fetchModuleDependencies(module, ...(await loadPromise));
this.fetchModuleDependencies(module, ...(await loadPromise));
}

private handleResolveId(
Expand Down

0 comments on commit a9dc596

Please sign in to comment.