()
| 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 | }; |
nothing calls this directly
no test coverage detected