mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
switched to hono/jwt to save some kb
This commit is contained in:
@@ -8,17 +8,20 @@ const result = await esbuild.build({
|
||||
conditions: ["worker", "browser"],
|
||||
entryPoints: ["./src/index.ts"],
|
||||
outdir: "dist",
|
||||
external: [],
|
||||
external: ["__STATIC_CONTENT_MANIFEST", "cloudflare:workers"],
|
||||
format: "esm",
|
||||
target: "es2022",
|
||||
keepNames: true,
|
||||
bundle: true,
|
||||
metafile: true,
|
||||
minify: true,
|
||||
loader: {
|
||||
".html": "copy"
|
||||
},
|
||||
define: {
|
||||
IS_CLOUDFLARE_WORKER: "true"
|
||||
}
|
||||
});
|
||||
|
||||
await Bun.write("dist/meta.json", JSON.stringify(result.metafile));
|
||||
//console.log("result", result.metafile);
|
||||
await $`gzip dist/index.js -c > dist/index.js.gz`;
|
||||
|
||||
Reference in New Issue
Block a user