blob: ed36e2e96afad5819c5c396b970e56bbfe9e6fe0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import * as esbuild from "@esbuild";
import { denoPlugin } from "@esbuild/deno";
const result = await esbuild.build({
plugins: [denoPlugin({
importMapURL: new URL("./import_map.json", import.meta.url),
})],
entryPoints: Deno.args,
outdir: Deno.env.get("WRITE_TO")
? Deno.env.get("WRITE_TO")
: "../../static/xeact",
bundle: true,
splitting: true,
format: "esm",
minifyWhitespace: !!Deno.env.get("MINIFY"),
});
console.log(result.outputFiles);
esbuild.stop();
|