Skip to content

Commit

Permalink
fix(glob): server perf when globbing huge dirs (#9425)
Browse files Browse the repository at this point in the history
  • Loading branch information
tony19 committed Jul 29, 2022
1 parent c918139 commit 156a3a4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/vite/src/node/plugins/importMetaGlob.ts
Expand Up @@ -74,10 +74,6 @@ export function importGlobPlugin(config: ResolvedConfig): Plugin {
if (server) {
const allGlobs = result.matches.map((i) => i.globsResolved)
server._importGlobMap.set(id, allGlobs)
result.files.forEach((file) => {
// update watcher
server!.watcher.add(dirname(file))
})
}
return transformStableResult(result.s, id, config)
}
Expand Down

0 comments on commit 156a3a4

Please sign in to comment.