perf(studio): leave scene files for the preview runtime to fetch

The preview inlined every data-composition-src scene into one document, so
nothing could play until the whole film had arrived and parsed. The bundler
gains subCompositions: external, used only by the Studio preview: the root
keeps its scene hosts and the runtime fetches each scene file. Renders keep
inlining. Frames at sampled times match the inlined preview exactly.
This commit is contained in:
Miguel Ángel
2026-09-23 00:23:23 -04:00
parent e39caa8133
commit bd87e8524f
4 changed files with 42 additions and 6 deletions
@@ -318,6 +318,7 @@ export const PREVIEW_BUNDLE_OPTIONS = {
runtime: "placeholder",
inlineAssets: false,
staticGuard: false,
subCompositions: "external",
} as const satisfies BundleOptions;
export function registerPreviewRoutes(api: Hono, adapter: PreviewApiAdapter): void {