Skip to content

Commit 156a3a4

Browse files
authoredJul 29, 2022
fix(glob): server perf when globbing huge dirs (#9425)
1 parent c918139 commit 156a3a4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed
 

‎packages/vite/src/node/plugins/importMetaGlob.ts

-4
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ export function importGlobPlugin(config: ResolvedConfig): Plugin {
7474
if (server) {
7575
const allGlobs = result.matches.map((i) => i.globsResolved)
7676
server._importGlobMap.set(id, allGlobs)
77-
result.files.forEach((file) => {
78-
// update watcher
79-
server!.watcher.add(dirname(file))
80-
})
8177
}
8278
return transformStableResult(result.s, id, config)
8379
}

0 commit comments

Comments
 (0)
Please sign in to comment.