mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-14 05:13:47 +00:00
chore(core): keep the module-script helpers' comment share at the base
This commit is contained in:
@@ -276,10 +276,6 @@ function jsonScriptLiteral(value: unknown): string {
|
||||
return JSON.stringify(value).replace(/</g, "\\u003c");
|
||||
}
|
||||
|
||||
/**
|
||||
* A composition's own `__hyperframes`: getVariables and assetUrl bound to it. Reads
|
||||
* `__hfBaseHyperframes`, `__hfTimelineCompId` and `__hfCompositionSrc` from the enclosing scope.
|
||||
*/
|
||||
const SCOPED_HYPERFRAMES_EXPRESSION = `!__hfBaseHyperframes
|
||||
? __hfBaseHyperframes
|
||||
: Object.assign({}, __hfBaseHyperframes, {
|
||||
@@ -294,10 +290,6 @@ const SCOPED_HYPERFRAMES_EXPRESSION = `!__hfBaseHyperframes
|
||||
},
|
||||
})`;
|
||||
|
||||
/**
|
||||
* Prepended to a mounted composition's `<script type="module">`, which cannot sit inside the
|
||||
* classic wrapper: its bare `__hyperframes` becomes the composition's own, as in a classic script.
|
||||
*/
|
||||
export function scopedModulePrelude(
|
||||
timelineCompositionId: string,
|
||||
compositionSrc?: string | null,
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
export interface ExternalScriptAttributes {
|
||||
integrity?: string;
|
||||
crossorigin?: string;
|
||||
/** Kept so a module never gets folded into a classic script or emitted as one. */
|
||||
type?: "module";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user