We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Content-Type
1 parent 5cec737 commit 2da7572Copy full SHA for 2da7572
examples/web-worker/src/lib/fetch-module-server.ts
@@ -10,6 +10,7 @@ export function vitePluginFetchModuleServer(): Plugin {
10
const [name, payload] = JSON.parse(url.searchParams.get("data")!);
11
const devEnv = server.environments[name]!;
12
const result = await devEnv.hot.handleInvoke(payload);
13
+ res.setHeader("Content-Type", "application/json");
14
res.end(JSON.stringify(result));
15
return;
16
}
0 commit comments