throwOutdatedRequest() — vite Function Reference
Architecture documentation for the throwOutdatedRequest() function in optimizedDeps.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD c21bd4cb_400a_15f5_15eb_1de2be5b3418["throwOutdatedRequest()"] 1ad5c135_fc65_cc8f_2918_6f109d7fd644["optimizedDeps.ts"] c21bd4cb_400a_15f5_15eb_1de2be5b3418 -->|defined in| 1ad5c135_fc65_cc8f_2918_6f109d7fd644 a1fc1de5_905b_efe7_d960_3597604fbdfe["importAnalysisPlugin()"] a1fc1de5_905b_efe7_d960_3597604fbdfe -->|calls| c21bd4cb_400a_15f5_15eb_1de2be5b3418 daaf9cbf_e2ae_6c47_2a70_91fb6babc950["optimizedDepsPlugin()"] daaf9cbf_e2ae_6c47_2a70_91fb6babc950 -->|calls| c21bd4cb_400a_15f5_15eb_1de2be5b3418 style c21bd4cb_400a_15f5_15eb_1de2be5b3418 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/plugins/optimizedDeps.ts lines 112–121
export function throwOutdatedRequest(id: string): never {
const err: any = new Error(
`There is a new version of the pre-bundle for "${id}", ` +
`a page reload is going to ask for it.`,
)
err.code = ERR_OUTDATED_OPTIMIZED_DEP
// This error will be caught by the transform middleware that will
// send a 504 status code request timeout
throw err
}
Domain
Subdomains
Source
Frequently Asked Questions
What does throwOutdatedRequest() do?
throwOutdatedRequest() is a function in the vite codebase, defined in packages/vite/src/node/plugins/optimizedDeps.ts.
Where is throwOutdatedRequest() defined?
throwOutdatedRequest() is defined in packages/vite/src/node/plugins/optimizedDeps.ts at line 112.
What calls throwOutdatedRequest()?
throwOutdatedRequest() is called by 2 function(s): importAnalysisPlugin, optimizedDepsPlugin.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free