File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
packages/vite/src/node/optimizer Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -239,16 +239,15 @@ function orderedDependencies(deps: Record<string, string>) {
239
239
}
240
240
241
241
function globEntries ( pattern : string | string [ ] , config : ResolvedConfig ) {
242
- const rootPattern = glob . convertPathToPattern ( config . root )
243
242
return glob ( pattern , {
244
243
cwd : config . root ,
245
244
ignore : [
246
- ` ${ rootPattern } / **/node_modules/**` ,
247
- `${ rootPattern } / **/${ config . build . outDir } /**` ,
245
+ ' **/node_modules/**' ,
246
+ `**/${ config . build . outDir } /**` ,
248
247
// if there aren't explicit entries, also ignore other common folders
249
248
...( config . optimizeDeps . entries
250
249
? [ ]
251
- : [ `${ rootPattern } / **/__tests__/**` , `${ rootPattern } / **/coverage/**` ] ) ,
250
+ : [ `**/__tests__/**` , `**/coverage/**` ] ) ,
252
251
] ,
253
252
absolute : true ,
254
253
suppressErrors : true , // suppress EACCES errors
You can’t perform that action at this time.
0 commit comments