fix(core): wrap bundled composition scripts as string literals

This commit is contained in:
func25
2026-05-25 15:41:13 +07:00
parent e101b47be4
commit 3bb0d1efd9
5 changed files with 53 additions and 10 deletions
@@ -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 () => {