Move arrpc server into a worker thread to reduce stutters (#1053)

Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
Justin
2025-07-06 11:34:32 -04:00
committed by GitHub
parent 099845deb7
commit 8aa91b4f01
6 changed files with 186 additions and 39 deletions

View File

@@ -58,6 +58,12 @@ await Promise.all([
outfile: "dist/js/main.js",
footer: { js: "//# sourceURL=VCDMain" }
}),
createContext({
...NodeCommonOpts,
entryPoints: ["src/main/arrpc/worker.ts"],
outfile: "dist/js/arRpcWorker.js",
footer: { js: "//# sourceURL=VCDArRpcWorker" }
}),
createContext({
...NodeCommonOpts,
entryPoints: ["src/preload/index.ts"],