Skip to content

Commit

Permalink
fix: forgot await
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Nov 7, 2024
1 parent 2dc6e17 commit ec5bff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/web-worker/src/lib/fetch-module-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function vitePluginFetchModuleServer(): Plugin {
if (url.pathname === "/@vite/invoke") {
const [name, ...args] = JSON.parse(url.searchParams.get("payload")!);
const devEnv = server.environments[name]!;
const result = devEnv.hot.api.invoke(...args);
const result = await devEnv.hot.api.invoke(...args);
res.end(JSON.stringify(result));
return;
}
Expand Down

0 comments on commit ec5bff1

Please sign in to comment.