We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed99a2c commit dc60410Copy full SHA for dc60410
packages/vite/src/node/optimizer/optimizer.ts
@@ -162,7 +162,6 @@ export function createDepsOptimizer(
162
cachedMetadata || initDepsOptimizerMetadata(environment, sessionTimestamp)
163
164
if (!cachedMetadata) {
165
- environment.waitForRequestsIdle().then(onCrawlEnd)
166
waitingForCrawlEnd = true
167
168
// Enter processing state until crawl of static imports ends
@@ -187,6 +186,8 @@ export function createDepsOptimizer(
187
186
newDepsDiscovered = true
188
}
189
+ environment.waitForRequestsIdle().then(onCrawlEnd)
190
+
191
if (noDiscovery) {
192
// We don't need to scan for dependencies or wait for the static crawl to end
193
// Run the first optimization run immediately
0 commit comments