Add comment with caveat about dev-server.ts

This commit is contained in:
Jamie Wong
2025-01-15 01:08:54 -08:00
parent bfcd0f0e46
commit 668ad92233
+6
View File
@@ -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)