Use your html files as entryPoints of esbuild, and have this plugin parse all of their dependencies (js, ts, css, images, and more), and bundle them together with optional code splitting.
Works in Browser and Deno environments, so long as wasm is available, since it relies on jsr:@b-fuze/deno-dom for parsing html files.
<!DOCTYPE html>
<!-- YOO! SUP MA GOOD MAN? -->
<head></head>
<!-- TODO -->
<body></body>