Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
perf(lint): strip stylesheet comments once per canvas zoom scan (#5712)
Rudy Mizrahi Celekli0bff8342c389
diff --git a/packages/lint/src/rules/composition.ts b/packages/lint/src/rules/composition.tsindex bdd579bd7e..bb81437d78 100644--- a/packages/lint/src/rules/composition.ts+++ b/packages/lint/src/rules/composition.ts@@ -360,8 +360,9 @@ function stylesheetCanvasZoomHits(const hits: CanvasZoomHit[] = [];for (const style of styles) {const ruleWithBody = /([^{}]+)\{([^{}]*)\}/g;+ const content = stripCssComments(style.content);let match: RegExpExecArray | null;- while ((match = ruleWithBody.exec(stripCssComments(style.content))) !== null) {+ while ((match = ruleWithBody.exec(content)) !== null) {const hit = canvasZoomInRule(match[1] ?? "", match[2] ?? "", rootId, rootClasses);if (hit) hits.push(hit);}