Skip to content

Commit

Permalink
chore: remove unneeded condition
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Feb 10, 2022
1 parent 6ecafb0 commit b414675
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/vite/src/node/optimizer/index.ts
Expand Up @@ -498,13 +498,9 @@ export function createIsOptimizedDepUrl(config: ResolvedConfig) {
// like '/node_modules/.vite'
`/${cacheDirRelative}`

return cacheDirPrefix
? function isOptimizedDepUrl(url: string): boolean {
return url.startsWith(cacheDirPrefix)
}
: function isOptimizedDepUrl(url: string): boolean {
return false
}
return function isOptimizedDepUrl(url: string): boolean {
return url.startsWith(cacheDirPrefix)
}
}

function metadataStringifyReplacer(key: string, value: any) {
Expand Down

0 comments on commit b414675

Please sign in to comment.