mirror of
https://github.com/morluto/rea.git
synced 2026-11-03 21:36:13 +00:00
fix(javascript): distinguish HTML script loads from data
This commit is contained in:
1 parent
8694dc30d9
commit
83b2d16ee9
6 files changed
+114
-5
No files matched your search
@@ -19,6 +19,8 @@ export const addJavaScriptHtmlRoles = (
|
||||
): void => {
|
||||
const byHtml = new Map<string, typeof context.analysis.html_scripts>();
|
||||
for (const script of context.analysis.html_scripts) {
|
||||
if (script.script_type !== "classic" && script.script_type !== "module")
|
||||
continue;
|
||||
const existing = byHtml.get(script.html_path);
|
||||
byHtml.set(
|
||||
script.html_path,
|
||||
|
||||
Reference in new issue
Block a user