Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
wip: try fix
  • Loading branch information
sapphi-red committed Jul 19, 2025
commit 24a7c9ee862c46fefafa9aab7913dd9f4894b892
6 changes: 6 additions & 0 deletions packages/vite/src/node/plugins/optimizedDeps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
? versionMatch[1].split('=')[1]
: undefined

if (browserHash && metadata.browserHash !== browserHash) {
throwOutdatedRequest(id)
}

// Search in both the currently optimized and newly discovered deps
const info = optimizedDepInfoFromFile(metadata, file)
if (info) {
Expand Down Expand Up @@ -77,6 +81,8 @@
try {
return await fsp.readFile(file, 'utf-8')
} catch {
for (let i = 0; i < 10; i++) {}

Check warning on line 84 in packages/vite/src/node/plugins/optimizedDeps.ts

View workflow job for this annotation

GitHub Actions / Lint: node-22, ubuntu-latest

Empty block statement

Check warning on line 84 in packages/vite/src/node/plugins/optimizedDeps.ts

View workflow job for this annotation

GitHub Actions / Lint: node-22, ubuntu-latest

Empty block statement

const newMetadata = depsOptimizer.metadata
if (optimizedDepInfoFromFile(newMetadata, file)) {
// Outdated non-entry points (CHUNK), loaded after a rerun
Expand Down
Loading