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>) {
239239}
240240
241241function globEntries ( pattern : string | string [ ] , config : ResolvedConfig ) {
242- const rootPattern = glob . convertPathToPattern ( config . root )
243242 return glob ( pattern , {
244243 cwd : config . root ,
245244 ignore : [
246- ` ${ rootPattern } / **/node_modules/**` ,
247- `${ rootPattern } / **/${ config . build . outDir } /**` ,
245+ ' **/node_modules/**' ,
246+ `**/${ config . build . outDir } /**` ,
248247 // if there aren't explicit entries, also ignore other common folders
249248 ...( config . optimizeDeps . entries
250249 ? [ ]
251- : [ `${ rootPattern } / **/__tests__/**` , `${ rootPattern } / **/coverage/**` ] ) ,
250+ : [ `**/__tests__/**` , `**/coverage/**` ] ) ,
252251 ] ,
253252 absolute : true ,
254253 suppressErrors : true , // suppress EACCES errors
You can’t perform that action at this time.
0 commit comments