You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 64e0a21
Browse filesBrowse the repository at this point in the historyBrowse files
// @ts-expect-error assetsURL is declared before preload.toString()
163
-
dep=assetsURL(dep,importerUrl)
164
-
dep=importMetaResolve(dep)
165
-
if(depinseen)return
166
-
seen[dep]=true
167
-
constisCss=dep.endsWith('.css')
167
+
depString=assetsURL(depString,importerUrl)
168
+
constdep=importMetaResolve(depString)
169
+
if(dep.hrefinseen)return
170
+
seen[dep.href]=true
171
+
constisCss=isCssPreloadUrl(dep)
168
172
169
173
// check if the file is already preloaded by SSR markup
170
174
// `dep` is already converted to an absolute URL by the `assetsURL` function
171
175
for(leti=links.length-1;i>=0;i--){
172
176
constlink=links[i]
173
177
// The `links[i].href` is an absolute URL thanks to browser doing the work
174
178
// for us. See https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#reflecting-content-attributes-in-idl-attributes:idl-domstring-5
// replace `import` as a workaround for stackblitz: https://stackblitz.com/edit/node-vqfvv8dy?file=index.js
0 commit comments