mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-11 23:00:03 +00:00
fix(core): wrap bundled composition scripts as string literals
This commit is contained in:
@@ -758,7 +758,8 @@ describe("bundleToSingleHtml", () => {
|
||||
expect(bundled).toContain('[data-composition-id="scene"] .title { color: red; }');
|
||||
expect(bundled).toContain("new Proxy(window.document");
|
||||
expect(bundled).toContain("new Proxy(__hfBaseGsap");
|
||||
expect(bundled).toContain('tl.to(".title"');
|
||||
expect(bundled).toContain('Function("document", "gsap", "window", "__hyperframes",');
|
||||
expect(bundled).toContain("tl.to('.title'");
|
||||
});
|
||||
|
||||
it("isolates sibling instances of the same external sub-composition", async () => {
|
||||
|
||||
Reference in New Issue
Block a user