raz / registry / build.mjs

10 lines · 188 B · raw · history · last change 4c98ab55

1import { build } from "esbuild";
2
3await build({
4 entryPoints: ["worker.ts"],
5 outfile: "dist/worker.mjs",
6 bundle: true,
7 format: "esm",
8 platform: "browser",
9 target: "es2022",
10});