Skip to content

Commit

Permalink
fix: scan entries when the root is in node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinjiang committed Jan 29, 2024
1 parent 639bbd6 commit 23507bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/optimizer/scan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ function globEntries(pattern: string | string[], config: ResolvedConfig) {
return glob(pattern, {
cwd: config.root,
ignore: [
'**/node_modules/**',
glob.convertPathToPattern(config.root) + '/**/node_modules/**',
`**/${config.build.outDir}/**`,
// if there aren't explicit entries, also ignore other common folders
...(config.optimizeDeps.entries
Expand Down

0 comments on commit 23507bc

Please sign in to comment.