in bun/build.ts [12:32]
async function build(): Promise<boolean> {
await rm(OUTPUT, { recursive: true, force: true });
try {
const result = await Bun.build({
entrypoints: [ENTRYPOINT],
outdir: OUTPUT,
splitting: !DEV,
minify: !DEV,
sourcemap: DEV ? "linked" : "none",
html: true,
experimentalCss: true,
throw: true,
});
return result.success;
} catch (e) {
const error = e as AggregateError;
console.error("Build failed");
console.error(error);
return false;
}
}