MCPcopy
hub / github.com/vitejs/vite / throwOutdatedRequest

Function throwOutdatedRequest

packages/vite/src/node/plugins/optimizedDeps.ts:128–137  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

126}
127
128export function throwOutdatedRequest(id: string): never {
129 const err: any = new Error(
130 `There is a new version of the pre-bundle for "${id}", ` +
131 `a page reload is going to ask for it.`,
132 )
133 err.code = ERR_OUTDATED_OPTIMIZED_DEP
134 // This error will be caught by the transform middleware that will
135 // send a 504 status code request timeout
136 throw err
137}
138
139export function throwFileNotFoundInOptimizedDep(id: string): never {
140 const err: any = new Error(

Callers 2

transformFunction · 0.90
loadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected