diff --git a/packages/producer/src/services/htmlCompiler.ts b/packages/producer/src/services/htmlCompiler.ts
index 77f444502b..951b0a82a5 100644
--- a/packages/producer/src/services/htmlCompiler.ts
+++ b/packages/producer/src/services/htmlCompiler.ts
@@ -29,6 +29,14 @@ import { createReadStream, existsSync, mkdirSync, readFileSync } from "fs";
import { join, dirname, resolve, basename, relative, sep } from "path";
import { parseHTML } from "linkedom";
import { bundledScript } from "./bundledScripts.js";
+import {
+ inlineScriptBlocks,
+ remoteSrcUrls,
+ removeDelimitedRuns,
+ replaceGsapDistScripts,
+ stripCrossoriginAttr,
+ stripPreloadNone,
+} from "./htmlTagScans.js";
import {
COMPOSITION_SOURCE_URL,
compileTimingAttrs,
@@ -393,22 +401,15 @@ export interface RenderModeHints {
reasons: RenderModeHint[];
}
-const INLINE_SCRIPT_PATTERN = /",
+ "",
+ "",
+ "",
+ ">",
+ " ",
+ "x",
+ "<",
+ "/*",
+ "*/",
+ ],
+ gsap: [
+ "",
+ "