Skip to content

Commit

Permalink
fix(optimizer): ignore EACCES errors while scanner (fixes vitejs#8916)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Aug 3, 2022
1 parent 1983cf4 commit bfc3301
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite/src/node/optimizer/scan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ function globEntries(pattern: string | string[], config: ResolvedConfig) {
? []
: [`**/__tests__/**`, `**/coverage/**`])
],
absolute: true
absolute: true,
suppressErrors: true // suppress EACCES errors
})
}

Expand Down

0 comments on commit bfc3301

Please sign in to comment.