We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43d394c commit ee8aeddCopy full SHA for ee8aedd
local-cli/server/util/attachHMRServer.js
@@ -67,7 +67,7 @@ type HMROptions<TModule> = {
67
};
68
69
type Moduleish = {
70
- getName(): Promise<string>,
+ getName(): string,
71
isAsset(): boolean,
72
isJSON(): boolean,
73
path: string,
@@ -135,7 +135,7 @@ function attachHMRServer<TModule: Moduleish>(
135
name?: string,
136
deps: Array<string>,
137
}> = await Promise.all(response.dependencies.map(async (dep: TModule) => {
138
- const depName = await dep.getName();
+ const depName = dep.getName();
139
140
if (dep.isAsset() || dep.isJSON()) {
141
return {path: dep.path, deps: []};
0 commit comments