Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
test(bundler): tolerate whitespace in closing script tag
Jamesb075f90b789b
diff --git a/packages/core/src/compiler/htmlBundler.test.ts b/packages/core/src/compiler/htmlBundler.test.tsindex aa2ccbc7b3..7675b307f8 100644--- a/packages/core/src/compiler/htmlBundler.test.ts+++ b/packages/core/src/compiler/htmlBundler.test.ts@@ -107,7 +107,7 @@ describe("bundleToSingleHtml", () => {// the separator, parse would fail with an unexpected-token error somewhere// around the chunk boundary.const { transformSync } = await import("esbuild");- const re = /<script\b[^>]*>([\s\S]*?)<\/script>/gi;+ const re = /<script\b[^>]*>([\s\S]*?)<\/script\s*>/gi;let m: RegExpExecArray | null;while ((m = re.exec(bundled)) !== null) {const body = m[1];