mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-17 23:47:33 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user