OptionalreadAsset: (absolutePath: string) => string | undefined
Reads an imported .css/.html file by absolute path, or
returns undefined to leave the import untouched. Defaults to a disk read
relative to fileName; serve passes one confined to the served root.
Transpiles a single TypeScript source string to a browser-ready ES module: type annotations stripped, relative CSS/HTML imports lowered to constructable stylesheets / templates (as in
Compiler), and relative imports rewritten with a.jsextension (via the shared transformer), without type-checking. This is the per-file transform behindbanira serve --ts, producing the same module shape as a fullbanira compileof one file.The output carries an inline source map (with the original TypeScript embedded) so breakpoints in devtools resolve to the
.ts— there is no separate.mapfile to serve. See #47.