fix(javascript): distinguish HTML script loads from data

This commit is contained in:
morluto committed 2026-10-27 05:57:26 +08:00
1 parent 8694dc30d9
commit 83b2d16ee9
6 files changed
+114 -5

No files matched your search

@@ -435,9 +435,10 @@ const parseHtmlScripts = (
const { scripts, inlineScripts, inlineScriptCount, baseHref } =
htmlArtifactReferences(text);
return {
scripts: scripts.map(({ scriptPath, location }) => ({
scripts: scripts.map(({ scriptPath, scriptType, location }) => ({
html_path: path,
script_path: scriptPath,
script_type: scriptType,
base_href: baseHref,
location,
})),