Skip to content

Commit

Permalink
chore: revert #15746 (#15839)
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev authored Feb 8, 2024
1 parent e0a6ef2 commit ed875f8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/vite/src/node/optimizer/scan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,16 +239,15 @@ function orderedDependencies(deps: Record<string, string>) {
}

function globEntries(pattern: string | string[], config: ResolvedConfig) {
const rootPattern = glob.convertPathToPattern(config.root)
return glob(pattern, {
cwd: config.root,
ignore: [
`${rootPattern}/**/node_modules/**`,
`${rootPattern}/**/${config.build.outDir}/**`,
'**/node_modules/**',
`**/${config.build.outDir}/**`,
// if there aren't explicit entries, also ignore other common folders
...(config.optimizeDeps.entries
? []
: [`${rootPattern}/**/__tests__/**`, `${rootPattern}/**/coverage/**`]),
: [`**/__tests__/**`, `**/coverage/**`]),
],
absolute: true,
suppressErrors: true, // suppress EACCES errors
Expand Down

0 comments on commit ed875f8

Please sign in to comment.