We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af53a1d commit df77991Copy full SHA for df77991
packages/vite/src/node/optimizer/optimizer.ts
@@ -625,7 +625,7 @@ async function createDepsOptimizer(
625
// It normally should be over by the time crawling of user code ended
626
await depsOptimizer.scanProcessing
627
628
- if (!isBuild && optimizationResult) {
+ if (!isBuild && optimizationResult && !config.optimizeDeps.noDiscovery) {
629
const result = await optimizationResult.result
630
optimizationResult = undefined
631
currentlyProcessing = false
0 commit comments