From 668ad92233b1bb993a68564c29ab7df65c46e8a0 Mon Sep 17 00:00:00 2001 From: Jamie Wong Date: Wed, 15 Jan 2025 01:08:54 -0800 Subject: [PATCH] Add comment with caveat about dev-server.ts --- scripts/dev-server.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/dev-server.ts b/scripts/dev-server.ts index ee79fd7..1b5af5d 100644 --- a/scripts/dev-server.ts +++ b/scripts/dev-server.ts @@ -10,6 +10,12 @@ async function main() { metafile: true, }) + // TODO(jlfwong): This only builds the index file once at the server boot. It + // would be nice to have this rebuild on demand, but I don't see an API + // available from esbuild that would let me intercept to do this. + // + // I could just build my own server to do this and call rebuild manually, but + // this is good enough for now. let buildResult = await ctx.rebuild() generateIndexHtml(buildResult, outdir)