diff --git a/v2/internal/html/assetbundle.go b/v2/internal/html/assetbundle.go index 414986e0f..cf56bb40e 100644 --- a/v2/internal/html/assetbundle.go +++ b/v2/internal/html/assetbundle.go @@ -112,6 +112,9 @@ func (a *AssetBundle) processHTML(htmldata string) error { if attr.Key == "as" && attr.Val == "script" { asset.Type = AssetTypes.JS } + if attr.Key == "rel" && attr.Val == "modulepreload" { + asset.Type = AssetTypes.JS + } } // Ensure we don't include duplicates