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 e6f6b3e
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: packages/vite/src/node/plugins/importAnalysisBuild.ts
+40-37Lines changed: 40 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -157,45 +157,48 @@ function preload(
157
157
}
158
158
159
159
promise=allSettled(
160
-
deps.map((dep)=>{
161
-
// @ts-expect-error assetsURL is declared before preload.toString()
162
-
dep=assetsURL(dep,importerUrl)
163
-
dep=importMetaResolve(dep)
164
-
if(depinseen)return
165
-
seen[dep]=true
166
-
constisCss=dep.endsWith('.css')
167
-
168
-
// check if the file is already preloaded by SSR markup
169
-
// `dep` is already converted to an absolute URL by the `assetsURL` function
170
-
for(leti=links.length-1;i>=0;i--){
171
-
constlink=links[i]
172
-
// The `links[i].href` is an absolute URL thanks to browser doing the work
173
-
// for us. See https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#reflecting-content-attributes-in-idl-attributes:idl-domstring-5
// @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')
168
+
169
+
// check if the file is already preloaded by SSR markup
170
+
// `dep` is already converted to an absolute URL by the `assetsURL` function
171
+
for(leti=links.length-1;i>=0;i--){
172
+
constlink=links[i]
173
+
// The `links[i].href` is an absolute URL thanks to browser doing the work
174
+
// for us. See https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#reflecting-content-attributes-in-idl-attributes:idl-domstring-5
0 commit comments