Files
plainleaf/build_worker_runtime.ts
T
Zef Hemel 02bd8ed362 Migration Deno -> Node.js
* First pass
* Now using vitest for tests
2026-02-14 22:08:35 +01:00

16 lines
439 B
TypeScript

import * as esbuild from "esbuild";
import { fileURLToPath } from "node:url";
// Build worker_runtime.ts into a standalone JS file
await esbuild.build({
entryPoints: [fileURLToPath(new URL("./client/plugos/worker_runtime.ts", import.meta.url))],
bundle: true,
format: "esm",
platform: "browser",
outfile: "dist/worker_runtime_bundle.js",
minify: false,
treeShaking: true,
});
console.log("Built worker_runtime_bundle.js");