Skip to content

Commit

Permalink
chore: remove full dep equlity optimization for checking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tal500 committed Sep 4, 2022
1 parent 40e4da0 commit e72c090
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vite/src/node/plugins/importAnalysisBuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ function preload(
seen[dep] = true
const seperatorIdx = dep.lastIndexOf('/')
const shortDep = seperatorIdx >= 0 ? dep.slice(seperatorIdx + 1) : dep
const fullDep = new URL(dep, importerUrl).href
const isCss = dep.endsWith('.css')
const cssSelector = isCss ? '[rel="stylesheet"]' : ''
// @ts-ignore check if the file is already preloaded by SSR markup
Expand All @@ -85,7 +84,7 @@ function preload(
const currentPath = possibleLinks[i].href
if (
currentPath === dep ||
new URL(currentPath, importerUrl).href === fullDep
new URL(currentPath, importerUrl).href === dep
) {
return
}
Expand Down

0 comments on commit e72c090

Please sign in to comment.