fix: Exclude scripts loaded with rel=modulepreload from snapshots (#1128)

* fix: Exclude `modulepreload` as well

We were only excluding `<link rel="preload" as="script" />` but we should include `rel="modulepreload"` as well

* Apply formatting changes
This commit is contained in:
Billy Vong
2026-04-01 12:00:00 +08:00
committed by GitHub
parent 10301288e4
commit c1e7fe9344
4 changed files with 7 additions and 3 deletions

View File

@@ -370,6 +370,7 @@ exports[`integration tests [html file]: preload.html 1`] = `
<title>Document</title>
<link />
<link />
<link />
</head>
<body></body></html>"
`;