MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / closeBundle

Function closeBundle

packages/plugins/apps/src/vite.ts:62–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 return output.join("\n");
61 },
62 async closeBundle() {
63 if (command !== "build") return;
64 const artifact = await bundledWorkerBundler();
65 const paths = artifactPaths(artifact);
66 const outputDir = join(process.cwd(), clientAssetsDir);
67 await mkdir(outputDir, { recursive: true });
68 await Promise.all([
69 writeFile(join(process.cwd(), "dist/client", paths.sourcePath), artifact.source),
70 writeFile(join(process.cwd(), "dist/client", paths.wasmPath), artifact.wasm),
71 ]);
72 },
73 };
74};

Callers

nothing calls this directly

Calls 2

bundledWorkerBundlerFunction · 0.90
artifactPathsFunction · 0.85

Tested by

no test coverage detected