Skip to content

Commit

Permalink
fix(optimizer): ignore EACCES errors while scanner (fixes #8916) (#9509)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Aug 10, 2022
1 parent e45d95f commit 4e6a77f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite/src/node/optimizer/scan.ts
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 4e6a77f

Please sign in to comment.